diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-01-14 09:54:48 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-01-14 09:54:48 (GMT) |
commit | a9eaf6765198716158f4927d71f64d20182f1ad2 (patch) | |
tree | 0ab3b08314676d08df2b812aa6906ee313a231bd /generic/tclBinary.c | |
parent | 2dd5df343a4d942668e094deb4363e8b7a938868 (diff) | |
parent | 1bc44ec32ab03ebaec021f52129ee1fefcac7850 (diff) | |
download | tcl-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.c | 2 |
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) \ |