News for hackers. Stuff that matters.
Re:A review of endianness bugs in Qt, and how they were fixed by EdSchouten on Saturday January 02, 2021 @05:11AM (#25611677)
How? We’re just reading from a byte array.
Re:A review of endianness bugs in Qt, and how they were fixed by josefx on Saturday January 02, 2021 @07:33AM (#25612383)
The optimized code assumes it can read a full 32 bit value at once. So at least that is only valid on a platform that doesn't assume that 32 bit loads are aligned and the actual compiled code would look a lot worse on platforms that do.