[OpenSIPS-Devel] [OpenSIPS/opensips] e68044: Extend the test for re-using pre-compiled regexp.
Bogdan-Andrei Iancu
bogdan at opensips.org
Wed Feb 28 05:34:28 EST 2018
Branch: refs/heads/2.2
Home: https://github.com/OpenSIPS/opensips
Commit: e68044a78f3aaa9e85c188e78b12677f192c9c15
https://github.com/OpenSIPS/opensips/commit/e68044a78f3aaa9e85c188e78b12677f192c9c15
Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
Date: 2018-02-28 (Wed, 28 Feb 2018)
Changed paths:
M transformations.c
Log Message:
-----------
Extend the test for re-using pre-compiled regexp.
A failure in compiling a regexp may lead to an inconsistent state, where the buffer is correctly populated, but the regexp pointer is NULL -> on next usage, the code will attempt to directly used (as the regexp buffer matches) the NULL pointer and crash.
Reported by Ben Newlin <Ben.Newlin at genesys.com>
(cherry picked from commit b77c1823ead3b61875e9f0dae1d57c9a6455135b)
More information about the Devel
mailing list