avcodec/wnv1: More strict buffer size check
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 28 May 2017 01:18:02 +0000 (03:18 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 5 Jun 2017 21:16:54 +0000 (23:16 +0200)
commit19556586d50817c07eb16a5c135d3e17d7e7c71c
tree72160de7c621a692bf5657c4b2d5534d41eb5d3b
parent8fbe1f634fdf9920492be10f078c0a49a17f7f14
avcodec/wnv1: More strict buffer size check

This requires at least 25% of a picture to allocate and decode it

Fixes: Timeout
Fixes: 1845/clusterfuzz-testcase-minimized-5075974343360512

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 7f50c25124a015a539823077bb302ff0c7ce8963)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/wnv1.c