avcodec/dstdec: Check that AC probabilities are within range
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 15 Oct 2019 21:42:50 +0000 (23:42 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 9 Nov 2019 14:57:34 +0000 (15:57 +0100)
commit0c3e1b395b47fac44397604b2a3343c4bd92561c
tree42e2c80c6c7171f56683159b6eee328aed147f7f
parent03ea8d8cd45e55eeb9675c38184dc2149710a557
avcodec/dstdec: Check that AC probabilities are within range

ISO/IEC 14496-3:2005(E): "Each entry of P_one[ ][ ] is in the range of 1 to
128, corresponding to a probability of 1/256 to 128/256 of the next error bit (bit E, See Figure 10.5)..."

Fixes: Timeout (42sec ->1sec)
Fixes: 18181/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DST_fuzzer-5736646250594304

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/dstdec.c