[asterisk-dev] [Code Review] 3539: pbx.c: segfault on recursive replace

Scott Griepentrog reviewboard at asterisk.org
Wed May 21 13:58:56 CDT 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/3539/
-----------------------------------------------------------

(Updated May 21, 2014, 1:58 p.m.)


Status
------

This change has been marked as submitted.


Review request for Asterisk Developers.


Changes
-------

Committed in revision 414214


Bugs: ASTERISK-23650
    https://issues.asterisk.org/jira/browse/ASTERISK-23650


Repository: Asterisk


Description
-------

Recursive usage of replace resulted in temporary string storage reuse and corruption.  This changes the variable storage from per-thread to allocated per call to replace().


Diffs
-----

  /branches/1.8/funcs/func_strings.c 413709 

Diff: https://reviewboard.asterisk.org/r/3539/diff/


Testing
-------

Tested with example dialplan under valgrind to eliminate the reference to realloc'd string storage.


Thanks,

Scott Griepentrog

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20140521/908f023b/attachment.html>


More information about the asterisk-dev mailing list