Tcl_GetUniChar reads beyond string length for ASCII strings
Closed / Fixedb5ac3e378678d29af7a19e9d8aaa481373a628d4Created 3 years agoUpdated 3 years ago
Descriptionmarkdown2023-09-05 05:40:31
For pure ASCII strings, Tcl_GetUniChar does not check passed index against string length.
For 8.6, this may possibly be not considered a bug since Tcl_GetUniChar is documented as expecting a valid index although it does check for non-ASCII.
For 8.7 and 9.0 this is a bug as Tcl_GetUniChar is documented as returning -1 for out of bounds indices.
Referenced by5
f6110039afMerge [06dbbb7dbc17e375], "Merge 8.7 - Fix [b5ac3e3786] - Tcl_GetUniChar oob read". check-in2024-08-20 17:28:4706dbbb7dbcMerge 8.7 - Fix [b5ac3e3786] - Tcl_GetUniChar oob read check-in2023-09-05 07:02:39fed73e58baMerge 8.6 - Fix [b5ac3e3786] - Tcl_GetUniChar oob read check-in2023-09-05 06:42:31f4605a9044Fix [b5ac3e3786] - Tcl_GetUniChar oob read check-in2023-09-05 06:10:23fc13863a82Fix [b5ac3e3786] - Tcl_GetUniChar oob read check-in2023-09-05 05:48:57
apnadkarniplain2023-09-05 07:05:12
Fixed with test cases in [f4605a9044].
Log in (anonymous is fine) to add a comment.