[OpenSIPS-Devel] [OpenSIPS/opensips] ab5f0f: [sipcapture] Fix array-out-of-bound when convertin...
Bogdan Andrei IANCU
noreply at github.com
Tue Jan 4 15:02:34 UTC 2022
Branch: refs/heads/3.1
Home: https://github.com/OpenSIPS/opensips
Commit: ab5f0f8071ac57a5648a81ad6ba4a0546851bc18
https://github.com/OpenSIPS/opensips/commit/ab5f0f8071ac57a5648a81ad6ba4a0546851bc18
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