avcodec/xwddec: Use ff_set_dimensions()
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 7 Jun 2018 22:42:31 +0000 (00:42 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 22 Oct 2018 23:44:40 +0000 (01:44 +0200)
commitaa803d93bf89871b7d374c9fcd7d81a7e43bcb43
tree183912f6ffb187cffe4ad06d475e1cc7e850090e
parent23fdebaec5796268561dc8a10a68cbe32b8396a4
avcodec/xwddec: Use ff_set_dimensions()

Fixes: OOM
Fixes: 8178/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_XWD_fuzzer-4844793342459904

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit c2852e4e00de4073ff7de82d41cb3368702686e8)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/xwddec.c