summaryrefslogtreecommitdiffstats
path: root/generic/tclUtil.c
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)
commit8806ae12c852e8ebb3e9e55ed0d0299d416fdf8a (patch)
tree43607f3d11947a331a1a9a21643d7bef36888cf2 /generic/tclUtil.c
parentbaac10e49ca94237df87385935b6898ca2546543 (diff)
downloadtcl-8806ae12c852e8ebb3e9e55ed0d0299d416fdf8a.zip
tcl-8806ae12c852e8ebb3e9e55ed0d0299d416fdf8a.tar.gz
tcl-8806ae12c852e8ebb3e9e55ed0d0299d416fdf8a.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 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;
}