Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
Qt Creator 4.2.0
-
32 bit builds
Description
In the function
static QString reformatCharacter(int code, int size, bool isSigned)
there's the line:
out += QString("/%1 ").arg((1 << (8*size)) + code).left(2 + 2 * size);
size can be 4.
According to cppcheck "Shifting 32-bit value by 32 bits is undefined behaviour"
Attachments
For Gerrit Dashboard: QTCREATORBUG-17632 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
183380,4 | Debugger: Fix spurious cppcheck warning in reformatCharacter | master | qt-creator/qt-creator | Status: MERGED | +2 | 0 |