Commit a29f2436 authored by Richard Gobeille's avatar Richard Gobeille
Browse files

mact: don't attempt to decode animation frames at offsets beyond the end of the current page

parent 184e64e7
......@@ -189,6 +189,9 @@ static void renderframe(uint16_t framenumber, uint16_t *pagepointer)
while (frame--) offset += B_LITTLE16(pagepointer[frame]);
if (offset >= anim->curlp->nBytes)
uint8_t *ppointer = (uint8_t *)(pagepointer) + anim->curlp->nRecords*2 + offset + 4;
if ((ppointer-4)[1])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment