avcodec/diracdec: Change frame_number to 64bit as its a 32bit from the bitstream...
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 22 Jul 2018 18:45:39 +0000 (20:45 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 31 Oct 2018 23:52:46 +0000 (00:52 +0100)
commitee5b42ce2f2f45a28d12643cf86538f7a7535d47
treec771fb773fc93879a9636c7d6d57ffc2a18e91b1
parentd5c48e8536d007a0cfdaf3e7cd5ab428db948374
avcodec/diracdec: Change frame_number to 64bit as its a 32bit from the bitstream and we also have a -1 special case

Fixes: signed integer overflow: 2147483647 + 1 cannot be represented in type 'int'
Fixes: 9291/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DIRAC_fuzzer-6324345860259840

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 462d1be6dec5ff4768be8c202f359cbf037db3c6)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/diracdec.c