]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix issue with ast_unescape_semicolon going into an endless loop.
authorJoshua Colp <jcolp@digium.com>
Mon, 29 Oct 2007 14:23:49 +0000 (14:23 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 29 Oct 2007 14:23:49 +0000 (14:23 +0000)
(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

main/utils.c

index fe9ee3cffaf7c734162b5d36692bf6083795b8b8..53f7bdfd2d28b2d06ae149ade5f8695243b5ac3b 100644 (file)
@@ -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;
                }
        }