diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | generic/tclUtil.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2011-03-06 Don Porter <dgp@users.sourceforge.net> + + * generic/tclUtil.c (TclFindElement): Guard escape sequence scans + to not overrun the string end. [Bug 3192636] + 2011-03-05 Don Porter <dgp@users.sourceforge.net> * generic/tclParse.c (TclParseBackslash): Correct trunction checks in diff --git a/generic/tclUtil.c b/generic/tclUtil.c index 8abf0d4..0dd4748 100644 --- a/generic/tclUtil.c +++ b/generic/tclUtil.c @@ -239,7 +239,7 @@ TclFindElement(interp, list, listLength, elementPtr, nextPtr, sizePtr, */ case '\\': { - Tcl_UtfBackslash(p, &numChars, NULL); + TclParseBackslash(p, limit - p, &numChars, NULL); p += (numChars - 1); break; } |