Details
-
Bug
-
Resolution: Unresolved
-
P1: Critical
-
None
-
5.15.11, 6.2.6, 6.4.1, 6.5.0 FF
-
None
-
8
-
f6b780b58 (dev), eee36a6ed (6.5)
Description
The <cctype> functions are locale-dependent. Also, they require that the argument is 0..255 or EOF, so it's UB to even feed a char! You need to cast to uchar first! So, basically all our uses of <cctype> functions are UB!
Please check your respective code bases, book patches, if any, onto this ticket, and, once merged, remove your component from the Jira field.
QTBUG-109235 dealt with toupper/tolower, specifically. This ticket is about all the other <cctype> functions, e.g. isprint().
Attachments
Issue Links
- resulted from
-
QTBUG-109235 Review toupper/tolower uses [Qt]
- Closed
Gerrit Reviews
For Gerrit Dashboard: QTBUG-111262 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
466935,5 | QtMiscUtils: add isAsciiPrintable() helper | dev | qt/qtbase | Status: MERGED | +2 | 0 |
467524,2 | QtMiscUtils: add isAsciiPrintable() helper | 6.5 | qt/qtbase | Status: MERGED | +2 | 0 |