diff options
author | apnadkarni <apnmbx-wits@yahoo.com> | 2022-11-03 12:26:41 (GMT) |
---|---|---|
committer | apnadkarni <apnmbx-wits@yahoo.com> | 2022-11-03 12:26:41 (GMT) |
commit | 6559f4084e844e187198c5471bfd15f19c8dfecc (patch) | |
tree | 97503adbf8ebecb3caea4748cf51693e4c6f8093 /generic/tclInt.h | |
parent | 9cc14dacd9e5389835ce195da4375592572f5a45 (diff) | |
download | tcl-6559f4084e844e187198c5471bfd15f19c8dfecc.zip tcl-6559f4084e844e187198c5471bfd15f19c8dfecc.tar.gz tcl-6559f4084e844e187198c5471bfd15f19c8dfecc.tar.bz2 |
Bug [0f98bce669]. Fix limits for string replace.
Diffstat (limited to 'generic/tclInt.h')
-rw-r--r-- | generic/tclInt.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tclInt.h b/generic/tclInt.h index 39ddef2..a17ce7d 100644 --- a/generic/tclInt.h +++ b/generic/tclInt.h @@ -105,7 +105,8 @@ #endif /* - * Maximum *signed* value that can be stored in a Tcl_Size type. + * Maximum *signed* value that can be stored in a Tcl_Size type. This is + * primarily used for checking overflows in dynamically allocating memory. */ #define TCL_SIZE_SMAX ((((Tcl_Size) 1) << ((8*sizeof(Tcl_Size)) - 1)) - 1) |