[OpenSIPS-Devel] [OpenSIPS/opensips] cc0335: Fix restoring/freeing the path_vec in failure rout...

Bogdan-Andrei Iancu bogdan at opensips.org
Tue Aug 18 15:26:15 CEST 2015


  Branch: refs/heads/2.1
  Home:   https://github.com/OpenSIPS/opensips
  Commit: cc033520ea5ab59fafd6ca7d52cc88fdad8574ef
      https://github.com/OpenSIPS/opensips/commit/cc033520ea5ab59fafd6ca7d52cc88fdad8574ef
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2015-08-18 (Tue, 18 Aug 2015)

  Changed paths:
    M modules/tm/t_msgbuilder.h

  Log Message:
  -----------
  Fix restoring/freeing the path_vec in failure route.

The path_vec (array holding the PATH string) was not properly pushed into the faked requests before calling the failure route. This was generating a mixture of shm/pkg memory when the faked request had to be freed.
This crash was trigger only if PATH support was used and requests were looked up with PATH header.

Reported by @AVFedorov and @petekelly.
Closes #484

Many thanks to @AVFedorov for his details information and to @petekelly for support in investigating and testing.




More information about the Devel mailing list