avformat/icodec: Fix crash probing fuzzed file
authorMark Harris <mark.hsj@gmail.com>
Tue, 16 Feb 2016 07:52:13 +0000 (23:52 -0800)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Sat, 26 Nov 2016 23:38:58 +0000 (00:38 +0100)
commit9375a7d85e8bc78dbb5cc101c37ff7c51f7d9b24
tree00106d00b0bb08548ec0018b7bd5a3fec6bb17a6
parente8ab2bd2ac85ad0b1013f247d35032b7cd7f771e
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>
(cherry picked from commit 56e2cd9c042e05255aa28487694c29aaec023263)
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
libavformat/icodec.c