diff options
author | Richard Mudgett <rmudgett@digium.com> | 2011-09-20 22:54:21 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2011-09-20 22:54:21 +0000 |
commit | 1313c1284700f2cb9882b4390989e10a4b51df00 (patch) | |
tree | 2b9672cb1f70a5537732da447c4e8f973cc8bc6a /main/app.c | |
parent | 38a7c68851348076deadf336e6e47f13ac16aa3e (diff) |
Merged revisions 337119 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/10
........
r337119 | rmudgett | 2011-09-20 17:47:45 -0500 (Tue, 20 Sep 2011) | 16 lines
Fix crash with STRREPLACE function.
The ast_func_read() function calls the .read2 callback with the len
parameter set to zero indicating no size restrictions on the supplied
ast_str buffer. The value was used to dimension a local starts[] array
with the array subsequently used.
* Reworked the strreplace() function to perform the string replacement in
a straight forward manner. Eliminated the need for the starts[] array.
(closes issue ASTERISK-18545)
Reported by: Federico Alves
Patches:
jira_asterisk_18545_v10.patch (license #5621) patch uploaded by rmudgett
Tested by: rmudgett, Federico Alves
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@337123 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/app.c')
0 files changed, 0 insertions, 0 deletions