avcodec/rv40: Test remaining space in loop of get_dimension()
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 15 Nov 2016 21:50:35 +0000 (22:50 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 15 Nov 2016 22:08:43 +0000 (23:08 +0100)
commit1546d487cf12da37d90a080813f8d57ac33036bf
tree3e230751b07c7bddbedb9803a36ed4cd9eeb29be
parent1abcd972c4c0e16f1e83be2fd32a251f51b2946d
avcodec/rv40: Test remaining space in loop of get_dimension()

Fixes infinite loop
Fixes: 178/fuzz-3-ffmpeg_VIDEO_AV_CODEC_ID_RV40_fuzzer

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/rv40.c