[OpenSIPS-Devel] [OpenSIPS/opensips] 37eab9: Extend the test for re-using pre-compiled regexp.
Bogdan-Andrei Iancu
bogdan at opensips.org
Wed Feb 28 05:32:19 EST 2018
Branch: refs/heads/2.3
Home: https://github.com/OpenSIPS/opensips
Commit: 37eab9a8c2dd19a17f2617057ca2014e9ffee263
https://github.com/OpenSIPS/opensips/commit/37eab9a8c2dd19a17f2617057ca2014e9ffee263
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