We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60559c7 commit 7ca96eaCopy full SHA for 7ca96ea
reader.cxx
@@ -68,8 +68,8 @@ struct chunkStream_t final : public stream_t
68
const size_t amount = valueDelta > chunkDelta ? chunkDelta : valueDelta;
69
if (isSequence && pos == 0)
70
{
71
- const uint32_t sequenceNum = *reinterpret_cast<const uint32_t *>(_chunks[chunk]->data());
72
- if (swap32(sequenceNum) != ++sequenceIndex)
+ const uint32_t sequenceNum = read32(_chunks[chunk]->data());
+ if (sequenceNum != ++sequenceIndex)
73
throw invalidPNG_t{};
74
}
75
0 commit comments