[OpenSIPS-Devel] [OpenSIPS/opensips] b77c18: Extend the test for re-using pre-compiled regexp.

Bogdan-Andrei Iancu bogdan at opensips.org
Wed Feb 28 05:31:18 EST 2018


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




More information about the Devel mailing list