mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 11:19:55 +00:00
avcodec/ituh263dec: Check cbpy in ff_h263_decode_mb()
Fixes: 618/clusterfuzz-testcase-6594990333493248 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
c11d3634b0
commit
b7d9b4a1f1
@ -717,6 +717,11 @@ int ff_h263_decode_mb(MpegEncContext *s,
|
||||
pb_mv_count = h263_get_modb(&s->gb, s->pb_frame, &cbpb);
|
||||
cbpy = get_vlc2(&s->gb, ff_h263_cbpy_vlc.table, CBPY_VLC_BITS, 1);
|
||||
|
||||
if (cbpy < 0) {
|
||||
av_log(s->avctx, AV_LOG_ERROR, "cbpy damaged at %d %d\n", s->mb_x, s->mb_y);
|
||||
return SLICE_ERROR;
|
||||
}
|
||||
|
||||
if(s->alt_inter_vlc==0 || (cbpc & 3)!=3)
|
||||
cbpy ^= 0xF;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user