diff options
| author | dgp@users.sourceforge.net <dgp> | 2011-03-06 19:52:30 (GMT) |
|---|---|---|
| committer | dgp@users.sourceforge.net <dgp> | 2011-03-06 19:52:30 (GMT) |
| commit | 5f6e260cef3291db67f39e2d5387f9f6bc5152ed (patch) | |
| tree | 43607f3d11947a331a1a9a21643d7bef36888cf2 /generic/tclUtil.c | |
| parent | cb12e115353de82867c7cb2704847107c941aae4 (diff) | |
| download | tcl-5f6e260cef3291db67f39e2d5387f9f6bc5152ed.zip tcl-5f6e260cef3291db67f39e2d5387f9f6bc5152ed.tar.gz tcl-5f6e260cef3291db67f39e2d5387f9f6bc5152ed.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.c | 2 |
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; } |
