diff options
author | patthoyts <patthoyts@users.sourceforge.net> | 2008-03-24 02:50:48 (GMT) |
---|---|---|
committer | patthoyts <patthoyts@users.sourceforge.net> | 2008-03-24 02:50:48 (GMT) |
commit | cb63dde6f333ff6e25312730911757c7468acc5a (patch) | |
tree | 84cc9ac6b874dcc8ece70be3945ccd7823b9b8a1 /generic/tclBinary.c | |
parent | a2c0799d3a7e5afbaf5b1e8cc06324c123b57299 (diff) | |
download | tcl-cb63dde6f333ff6e25312730911757c7468acc5a.zip tcl-cb63dde6f333ff6e25312730911757c7468acc5a.tar.gz tcl-cb63dde6f333ff6e25312730911757c7468acc5a.tar.bz2 |
bug #1923966 - crash in binary format. Added tests for the above crash condition.
Diffstat (limited to 'generic/tclBinary.c')
-rw-r--r-- | generic/tclBinary.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclBinary.c b/generic/tclBinary.c index f08964d..2045d0f 100644 --- a/generic/tclBinary.c +++ b/generic/tclBinary.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclBinary.c,v 1.39 2007/12/13 15:23:15 dgp Exp $ + * RCS: @(#) $Id: tclBinary.c,v 1.40 2008/03/24 02:50:52 patthoyts Exp $ */ #include "tclInt.h" @@ -785,7 +785,7 @@ Tcl_BinaryObjCmd( if (!GetFormatSpec(&format, &cmd, &count, &flags)) { break; } - if ((count == 0) && (cmd != '@')) { + if ((count == 0) && !(cmd == '@' || cmd == 'x')) { arg++; continue; } |