avcodec/decode: Consider STRIDE_ALIGN in get_buffer_internal() when checking width
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 14 Jun 2018 13:00:55 +0000 (15:00 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 15 Jun 2018 19:51:42 +0000 (21:51 +0200)
commit2e205bfc14d8cecf88f8713275fe8e07454d00b5
treeda1d171b68dc59b59cc329e914d221f95d67891f
parent3dc5aa36fbbd025d60baa948e1778fa2827615bf
avcodec/decode: Consider STRIDE_ALIGN in get_buffer_internal() when checking width

STRIDE_ALIGN is not known in libavutil so av_image_check_size* cannot consider it

Fixes: OOM
Fixes: 8291/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SNOW_fuzzer-5176528009691136

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