summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2011-03-06 19:52:30 (GMT)
committerdgp <dgp@users.sourceforge.net>2011-03-06 19:52:30 (GMT)
commit030be92318aa1d4b37a84fae9614fe5a77f890ba (patch)
tree43607f3d11947a331a1a9a21643d7bef36888cf2
parent6f4c6b438f678ccc6e493a7844b48f3464dac417 (diff)
downloadtcl-030be92318aa1d4b37a84fae9614fe5a77f890ba.zip
tcl-030be92318aa1d4b37a84fae9614fe5a77f890ba.tar.gz
tcl-030be92318aa1d4b37a84fae9614fe5a77f890ba.tar.bz2
* generic/tclUtil.c (TclFindElement): Guard escape sequence scans
to not overrun the string end. [Bug 3192636]
-rw-r--r--ChangeLog5
-rw-r--r--generic/tclUtil.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index d8ab407..9c09dcc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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;
}