[OpenSIPS-Devel] [OpenSIPS/opensips] c31820: [sipcapture] Fix array-out-of-bound when convertin...

Bogdan Andrei IANCU noreply at github.com
Tue Jan 4 15:01:50 UTC 2022

  Branch: refs/heads/3.2
  Home:   https://github.com/OpenSIPS/opensips
  Commit: c318205ce2c1520589196334ebf57a1506698852
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2022-01-04 (Tue, 04 Jan 2022)

  Changed paths:
    M modules/sipcapture/sipcapture.c

  Log Message:
  [sipcapture] Fix array-out-of-bound when converting proto ID to string/name

Instead of using a local array for mapping the proto IDs to names, better use the core get_proto_name() function - this will avoid duble code maintaining and risks of looking up IDs out-of-bound.

Closes #2671

(cherry picked from commit 7de9b15f8bbac3f1294c418ec1e4bbe9111e1454)

More information about the Devel mailing list