From: Joshua Colp Date: Mon, 29 Oct 2007 14:23:49 +0000 (+0000) Subject: Fix issue with ast_unescape_semicolon going into an endless loop. X-Git-Tag: 1.4.14~95 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7fc2c32a9262f605d2c9983caa6e16ecb79e2afb;p=thirdparty%2Fasterisk.git 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 --- diff --git a/main/utils.c b/main/utils.c index fe9ee3cffa..53f7bdfd2d 100644 --- a/main/utils.c +++ b/main/utils.c @@ -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; } }