https://bugs.kde.org/show_bug.cgi?id=493466
Bug ID: 493466 Summary: Endianness bug in PCX reader’s peekHeader() method on big endian architectures Classification: Frameworks and Libraries Product: frameworks-kimageformats Version: 6.6.0 Platform: Debian unstable OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: alex.me...@kde.org Reporter: couc...@debian.org CC: aa...@kde.org, kdelibs-b...@kde.org Target Milestone: --- When reading from a sequential device, the peekHeader() method in the PCX readers reads the header from its defined little endian endianness into the arch-specific endianness of the current architecture for multibyte types. Being a "peek" method, it then tries to push back the bytes into the device after reading for its next use, but it doesn’t convert multibyte types correctly from arch-specifice endianness back into the initial little endian format. Subsequent reading of the data from the device will thus lead to incorrect values for multibyte types on the next use, where quint16 types in the header have their bytes swapped. I’ve proposed an MR here with a fix : https://invent.kde.org/frameworks/kimageformats/-/merge_requests/258 -- You are receiving this mail because: You are watching all bug changes.