avformat/icodec: Fix crash probing fuzzed file
authorMark Harris <mark.hsj@gmail.com>
Tue, 16 Feb 2016 07:52:13 +0000 (23:52 -0800)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 20 Feb 2016 01:56:25 +0000 (02:56 +0100)
commit56e2cd9c042e05255aa28487694c29aaec023263
tree4549656eaaac42d72731b80b40f4a68438e9bf6a
parent1b4fbf808082eaa6945e5fc2cda487573691e8e6
avformat/icodec: Fix crash probing fuzzed file

Avoid invalid memory read/crash when frame offset >= 0xfffffff8.
Base64-encoded example: AAABADAwMDAwMAAAMAAwMDAw/P///w==
(The previous commit verifies that p->buf_size >= 22.)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/icodec.c