summaryrefslogtreecommitdiffstats
path: root/generic/tclBinary.c
diff options
context:
space:
mode:
authorpatthoyts <patthoyts@users.sourceforge.net>2008-03-24 02:50:48 (GMT)
committerpatthoyts <patthoyts@users.sourceforge.net>2008-03-24 02:50:48 (GMT)
commitcb63dde6f333ff6e25312730911757c7468acc5a (patch)
tree84cc9ac6b874dcc8ece70be3945ccd7823b9b8a1 /generic/tclBinary.c
parenta2c0799d3a7e5afbaf5b1e8cc06324c123b57299 (diff)
downloadtcl-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.c4
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;
}