mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-27 04:00:42 +00:00
- don't attempt to decode animation frames at offsets beyond the end of the current page.
Copied from EDuke32.
This commit is contained in:
parent
0724b3326c
commit
5d67987fe1
1 changed files with 3 additions and 0 deletions
|
@ -188,6 +188,9 @@ static void renderframe(anim_t *anim, uint16_t framenumber, uint16_t *pagepointe
|
|||
|
||||
while (frame--) offset += LittleShort(pagepointer[frame]);
|
||||
|
||||
if (offset >= anim->curlp->nBytes)
|
||||
return;
|
||||
|
||||
uint8_t *ppointer = (uint8_t *)(pagepointer) + anim->curlp->nRecords*2 + offset + 4;
|
||||
|
||||
if ((ppointer-4)[1])
|
||||
|
|
Loading…
Reference in a new issue