summaryrefslogtreecommitdiffstats
path: root/generic/tclBinary.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-01-14 09:54:48 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-01-14 09:54:48 (GMT)
commita9eaf6765198716158f4927d71f64d20182f1ad2 (patch)
tree0ab3b08314676d08df2b812aa6906ee313a231bd /generic/tclBinary.c
parent2dd5df343a4d942668e094deb4363e8b7a938868 (diff)
parent1bc44ec32ab03ebaec021f52129ee1fefcac7850 (diff)
downloadtcl-a9eaf6765198716158f4927d71f64d20182f1ad2.zip
tcl-a9eaf6765198716158f4927d71f64d20182f1ad2.tar.gz
tcl-a9eaf6765198716158f4927d71f64d20182f1ad2.tar.bz2
Fix [816913a65e]: GrowStringBuffer(): signed integer overflow. And a few similar situations in other places
Diffstat (limited to 'generic/tclBinary.c')
-rw-r--r--generic/tclBinary.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclBinary.c b/generic/tclBinary.c
index 0296770..6f36d54 100644
--- a/generic/tclBinary.c
+++ b/generic/tclBinary.c
@@ -189,7 +189,7 @@ typedef struct ByteArray {
} ByteArray;
#define BYTEARRAY_SIZE(len) \
- ((unsigned) (TclOffset(ByteArray, bytes) + (len)))
+ (((unsigned)TclOffset(ByteArray, bytes) + (len)))
#define GET_BYTEARRAY(objPtr) \
((ByteArray *) (objPtr)->internalRep.twoPtrValue.ptr1)
#define SET_BYTEARRAY(objPtr, baPtr) \