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"