mirror of https://git.ffmpeg.org/ffmpeg.git
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/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 258763ad0e
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
0d05a80c2b
commit
ad909cafe7
|
@ -1721,7 +1721,7 @@ decode_cabac_residual_internal(H264Context *h, int16_t *block,
|
|||
while( j-- ) { \
|
||||
coeff_abs += coeff_abs + get_cabac_bypass( CC ); \
|
||||
} \
|
||||
coeff_abs+= 14; \
|
||||
coeff_abs+= 14U; \
|
||||
} \
|
||||
\
|
||||
if( is_dc ) { \
|
||||
|
|
Loading…
Reference in New Issue