avcodec/hevc_cabac: Tighten the limit on k in ff_hevc_cu_qp_delta_abs()
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 9 Sep 2019 21:23:20 +0000 (23:23 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 28 Sep 2019 15:48:04 +0000 (17:48 +0200)
commitf63cd1963e36bc70211e072bac7eb3606cf85f14
tree842554f37dfb8aaab5918a1b88ef237c180e0641
parent4294dc3589a3ab973b10a85b576ff15e3ffb000d
avcodec/hevc_cabac: Tighten the limit on k in ff_hevc_cu_qp_delta_abs()

Values larger would fail subsequent tests.

Fixes: signed integer overflow: 5 + 2147483646 cannot be represented in type 'int'
Fixes: 16966/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HEVC_fuzzer-5695709549953024

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