summaryrefslogtreecommitdiffstats
path: root/generic/tclUtil.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2011-03-06 20:07:14 (GMT)
committerdgp <dgp@users.sourceforge.net>2011-03-06 20:07:14 (GMT)
commit42a0f5eabc531da30fc887e4c56cca4fdfd41d35 (patch)
treef0a428406ea164a42bdf19c1be62238fab52fe75 /generic/tclUtil.c
parentdd5edff4de524a2d31d9877d1930b6a798eaccdc (diff)
parent85e04692fde0b069530d71cd79b6f9fedb42571b (diff)
downloadtcl-42a0f5eabc531da30fc887e4c56cca4fdfd41d35.zip
tcl-42a0f5eabc531da30fc887e4c56cca4fdfd41d35.tar.gz
tcl-42a0f5eabc531da30fc887e4c56cca4fdfd41d35.tar.bz2
* generic/tclUtil.c (TclFindElement): Guard escape sequence scans
to not overrun the string end. [Bug 3192636]
Diffstat (limited to 'generic/tclUtil.c')
-rw-r--r--generic/tclUtil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclUtil.c b/generic/tclUtil.c
index 535634f..3fd6271 100644
--- a/generic/tclUtil.c
+++ b/generic/tclUtil.c
@@ -232,7 +232,7 @@ TclFindElement(
*/
case '\\':
- Tcl_UtfBackslash(p, &numChars, NULL);
+ TclParseBackslash(p, limit - p, &numChars, NULL);
p += (numChars - 1);
break;