summaryrefslogtreecommitdiffstats
path: root/generic/tclInt.h
diff options
context:
space:
mode:
authorapnadkarni <apnmbx-wits@yahoo.com>2022-11-03 12:26:41 (GMT)
committerapnadkarni <apnmbx-wits@yahoo.com>2022-11-03 12:26:41 (GMT)
commit6559f4084e844e187198c5471bfd15f19c8dfecc (patch)
tree97503adbf8ebecb3caea4748cf51693e4c6f8093 /generic/tclInt.h
parent9cc14dacd9e5389835ce195da4375592572f5a45 (diff)
downloadtcl-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.h3
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)