mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
Fix issue with ast_unescape_semicolon going into an endless loop.
(closes issue #10550) Reported by: ramonpeek Patches: unescape-85177-1.patch uploaded by IgorG (license 20) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@87294 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -942,6 +942,8 @@ char *ast_unescape_semicolon(char *s)
|
||||
if ((e > work) && (*(e-1) == '\\')) {
|
||||
memmove(e - 1, e, strlen(e) + 1);
|
||||
work = e;
|
||||
} else {
|
||||
work = e + 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user