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>
Tue, 25 Jun 2019 11:30:09 +0000 (13:30 +0200)
commit5ea7f2050050fd6a9177a9b618f2bb2d4add9230
tree2ecc70e327aed036b18ba85c3179ef125829e8db
parentd8716e3df9ee81909342b0b59f5b6eff052964fd
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>
libavcodec/xpmdec.c