avcodec/xpmdec: Do not use context dimensions as temporary variables
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 12 Jun 2019 18:13:34 +0000 (20:13 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 27 Jun 2019 15:50:47 +0000 (17:50 +0200)
commit529a719a25e2949e80a4efee7880e3cf314cb98e
treee9ef5587fa0c8ba2a7d44f0a7af3184b97a32ba6
parentc0e3f54ec061629d79549ee4855c8b4f844d3ad1
avcodec/xpmdec: Do not use context dimensions as temporary variables

Fixes: Integer overflow
Fixes: 15134/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_XPM_fuzzer-5722635939348480

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 5ea7f2050050fd6a9177a9b618f2bb2d4add9230)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/xpmdec.c