Commit 258763ad authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/h264_cabac: runtime error: signed integer overflow: 2147483647 + 14...

avcodec/h264_cabac: runtime error: signed integer overflow: 2147483647 + 14 cannot be represented in type 'int'

Fixes: 614/clusterfuzz-testcase-4931860079575040

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpegSigned-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent aa2b7526
...@@ -1743,7 +1743,7 @@ decode_cabac_residual_internal(const H264Context *h, H264SliceContext *sl, ...@@ -1743,7 +1743,7 @@ decode_cabac_residual_internal(const H264Context *h, H264SliceContext *sl,
while( j-- ) { \ while( j-- ) { \
coeff_abs += coeff_abs + get_cabac_bypass( CC ); \ coeff_abs += coeff_abs + get_cabac_bypass( CC ); \
} \ } \
coeff_abs+= 14; \ coeff_abs+= 14U; \
} \ } \
\ \
if( is_dc ) { \ if( is_dc ) { \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment