diff options
author | hobbs <hobbs@noemail.net> | 2010-08-10 20:48:21 (GMT) |
---|---|---|
committer | hobbs <hobbs@noemail.net> | 2010-08-10 20:48:21 (GMT) |
commit | f11698fb3ef4c24bf62e3f2ab3b5df26d439d41d (patch) | |
tree | 973ef52f7c4d034e6a8c0ba0527a53b87c1a1243 /generic/tclUtil.c | |
parent | fcac99f97f1327b02efcd24506bebfe741cb177f (diff) | |
download | tcl-f11698fb3ef4c24bf62e3f2ab3b5df26d439d41d.zip tcl-f11698fb3ef4c24bf62e3f2ab3b5df26d439d41d.tar.gz tcl-f11698fb3ef4c24bf62e3f2ab3b5df26d439d41d.tar.bz2 |
* generic/tclUtil.c (TclByteArrayMatch): patterns may not be
null-terminated, so account for that.
FossilOrigin-Name: 6955f9dc514820ecbd0af3a2fc89d105bacc1010
Diffstat (limited to 'generic/tclUtil.c')
-rw-r--r-- | generic/tclUtil.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclUtil.c b/generic/tclUtil.c index a2b4d84..64d36f4 100644 --- a/generic/tclUtil.c +++ b/generic/tclUtil.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclUtil.c,v 1.97.2.5 2008/08/22 18:00:15 dgp Exp $ + * RCS: @(#) $Id: tclUtil.c,v 1.97.2.6 2010/08/10 20:48:21 hobbs Exp $ */ #include "tclInt.h" @@ -1609,7 +1609,7 @@ TclByteArrayMatch( * Skip all successive *'s in the pattern. */ - while (*(++pattern) == '*') { + while ((++pattern < patternEnd) && (*pattern == '*')) { /* empty body */ } if (pattern == patternEnd) { |