diff options
| author | Miguel Sofer <miguel.sofer@gmail.com> | 2007-10-15 13:22:49 (GMT) |
|---|---|---|
| committer | Miguel Sofer <miguel.sofer@gmail.com> | 2007-10-15 13:22:49 (GMT) |
| commit | 03a1655cb6bf8e84fd91250d3ccdd9b3d5b72389 (patch) | |
| tree | 747d43194a9bc6189dfa63e18ef47443c599f6f8 | |
| parent | fdb2cc21e668c36d97c736a1a8471e18d56f8082 (diff) | |
| download | tcl-03a1655cb6bf8e84fd91250d3ccdd9b3d5b72389.zip tcl-03a1655cb6bf8e84fd91250d3ccdd9b3d5b72389.tar.gz tcl-03a1655cb6bf8e84fd91250d3ccdd9b3d5b72389.tar.bz2 | |
* generic/tclParse.c (Tcl_ParseBraces): fix for possible read
after the end of buffer, [Bug 1813528] (Joe Mistachkin).
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | generic/tclParse.c | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2007-10-15 Miguel Sofer <msofer@users.sf.net> + + * generic/tclParse.c (Tcl_ParseBraces): fix for possible read + after the end of buffer, [Bug 1813528] (Joe Mistachkin). + 2007-10-14 David Gravereaux <davygrvy@pobox.com> * tools/mkdepend.tcl (new): Initial stab at generating automatic diff --git a/generic/tclParse.c b/generic/tclParse.c index 8fe9516..b11e5bf 100644 --- a/generic/tclParse.c +++ b/generic/tclParse.c @@ -12,7 +12,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclParse.c,v 1.56 2007/07/19 13:57:36 dgp Exp $ + * RCS: @(#) $Id: tclParse.c,v 1.57 2007/10/15 13:22:50 msofer Exp $ */ #include "tclInt.h" @@ -1785,7 +1785,7 @@ Tcl_ParseBraces( { register int openBrace = 0; - for (; src > start; src--) { + while (--src > start) { switch (*src) { case '{': openBrace = 1; |
