Skip to content
Snippets Groups Projects
Commit db42d93a authored by Dale Curtis's avatar Dale Curtis Committed by Michael Niedermayer
Browse files

mov: Fix overflow and error handling in read_tfra().


Under abnormal conditions the item_count may exceed the max
allocation size on 32-bit systems, this causes the allocated
size to overflow and become too small for the given count.

Additionally, if av_reallocp() fails its allocation, the
fragment_index_count is not correctly decremented.

Ensuring further havoc may be wrought, the error code for
read_tfra() is not checked upon return.

Found-by: default avatarPaul Mehta <paul@paulmehta.com>

positive return code and use of _array functions by commiter

Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent a79ac73b
No related branches found
No related tags found
No related merge requests found
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