Skip to content
Tcl Source Code View Ticket
Login

View Ticket

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
apnadkarniplain2023-09-05 07:05:12
Fixed with test cases in [f4605a9044].
Log in (anonymous is fine) to add a comment.