angler-fishThe Vulnerability History Project

avcodec/mjpegdec: check bits per pixel for changes similar to dimensions

      Fixes out of array accesses
Fixes: asan_heap-oob_16668e9_2_asan_heap-oob_16668e9_346_miss_congeniality_pegasus_mjpg.avi

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
    
commit 5c378d6a6df8243f06c87962b873bd563e58cd39
+5 -7
expand_less