Overview
| Artifact ID: | 4308e5f95bdd3428ed433cb86f93f6552e523ddf |
|---|---|
| Ticket: | 2738427fffffffffffffffffffffffffffffffff
Tcl_NumUtfChars(...) no overflow check |
| User & Date: | dgp on 2017-06-08 12:54:47 |
Changes
- closedate changed to: "2457913.03804544"
- closer changed to: "dgp"
- icomment:
Thanks for finding and addressing this old ticket. I'm worried it's not quite a correct answer. The overflow detection is only done after the loop ends, and not at each pass through the loop. This leaves open the possibility that i could circle all the way back to a non-negative value before '\0' is seen and we get a count that's (UINT_MAX + 1) too small. Since the return type can only handle a value up to INT_MAX, and since there's no error reporting channel available, should this routine just panic for inputs outside that supportable range?
- login: "dgp"
- mimetype: "text/plain"