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

Bogdan Andrei IANCU noreply at github.com
Tue Jan 4 13:42:49 UTC 2022


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 7de9b15f8bbac3f1294c418ec1e4bbe9111e1454
      https://github.com/OpenSIPS/opensips/commit/7de9b15f8bbac3f1294c418ec1e4bbe9111e1454
  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





More information about the Devel mailing list