avcodec/vc1_block: Fix mqaunt check for negative values
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 28 Jun 2018 21:46:32 +0000 (23:46 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 29 Jun 2018 22:41:35 +0000 (00:41 +0200)
commitd08d4a8c7387e758d439b0592782e4cfa2b4d6a4
tree6db5e20e5a1ebd42cb0196cade7c68f2d26fecb7
parent5a99e00023c057555697c73b2119f378b019c5fa
avcodec/vc1_block: Fix mqaunt check for negative values

Fixes: out of array access
Fixes: ffmpeg_bof_4.avi
Fixes: ffmpeg_bof_5.avi
Fixes: ffmpeg_bof_6.avi

Found-by: Thuan Pham, Marcel Böhme, Andrew Santosa and Alexandru Razvan Caciulescu with AFLSmart
Reviewed-by: Jerome Borsboom <jerome.borsboom@carpalis.nl>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/vc1_block.c