Skip to content
Snippets Groups Projects
Commit 91b8aa5c authored by Benjamin Gilbert's avatar Benjamin Gilbert
Browse files

ANI: Validate anih chunk size

Before reading a chunk, we verify that enough bytes are available to match
the chunk size declared by the file.  However, uniquely, the anih chunk
loader doesn't verify that this size matches the number of bytes it
actually intends to read.  Thus, if the chunk size is too small and the
file ends in the middle of the chunk, we populate some context fields with
stack garbage.  (But we'd still fail later on because the file doesn't
contain any images.)  Fix this.
parent d5213437
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment