diff options
author | dgp <dgp@noemail.net> | 2011-03-06 20:07:14 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2011-03-06 20:07:14 (GMT) |
commit | b08aed08dd92dfd47b5e6cd1fdd0e1825a8a1388 (patch) | |
tree | f0a428406ea164a42bdf19c1be62238fab52fe75 /generic/tclUtil.c | |
parent | 47333942db05a3b6916d71c7954fde5bf7064c73 (diff) | |
parent | 1fc00f0e8aa93f87ac2638405cc96580dd3e506a (diff) | |
download | tcl-b08aed08dd92dfd47b5e6cd1fdd0e1825a8a1388.zip tcl-b08aed08dd92dfd47b5e6cd1fdd0e1825a8a1388.tar.gz tcl-b08aed08dd92dfd47b5e6cd1fdd0e1825a8a1388.tar.bz2 |
* generic/tclUtil.c (TclFindElement): Guard escape sequence scans
to not overrun the string end. [Bug 3192636]
FossilOrigin-Name: 4dbf4963bda84e9aaa6111c59d05968d9cd3ad60
Diffstat (limited to 'generic/tclUtil.c')
-rw-r--r-- | generic/tclUtil.c | 2 |
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; |