Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2024-08-20
17:28
Merge [06dbbb7dbc17e375], "Merge 8.7 - Fix [b5ac3e3786] - Tcl_GetUniChar oob read". check-in: f6110039af user: pooryorick tags: unchained, INCOMPATIBLE_LICENSE
2023-09-05
07:05 • Closed ticket [b5ac3e3786]: Tcl_GetUniChar reads beyond string length for ASCII ... artifact: ea2f6156d7 user: apnadkarni
07:02
Merge 8.7 - Fix [b5ac3e3786] - Tcl_GetUniChar oob read check-in: 06dbbb7dbc user: apnadkarni tags: trunk, main
06:42
Merge 8.6 - Fix [b5ac3e3786] - Tcl_GetUniChar oob read check-in: fed73e58ba user: apnadkarni tags: core-8-branch
06:10
Fix [b5ac3e3786] - Tcl_GetUniChar oob read check-in: f4605a9044 user: apnadkarni tags: core-8-6-branch
05:48
Fix [b5ac3e3786] - Tcl_GetUniChar oob read closed check-in: fc13863a82 user: apnadkarni tags: bug-b5ac3e3786
05:40 • New ticket [b5ac3e3786] Tcl_GetUniChar reads beyond string length for ASCII stri... artifact: 901e5080e8 user: apnadkarni

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.