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, 16 Jul 2018 17:06:27 +0000 (19:06 +0200)
commita16a4fefb6d1dee75d329012c0e3ecaa7769ebd6
tree9ad13a5146a3a78f3c9e6b4551997c489aaaf946
parent719931c036e7ace5bd0cf4f4027648f196e3f06e
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