mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-17 12:30:11 +01:00
avcodec/h264_slice: Clear ref_counts on redundant slices
Fixes reading freed memory
Fixes: 568/clusterfuzz-testcase-6107186067406848
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 c03029a835)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -1587,7 +1587,9 @@ again:
|
|||||||
#endif
|
#endif
|
||||||
} else
|
} else
|
||||||
context_count++;
|
context_count++;
|
||||||
}
|
} else
|
||||||
|
sl->ref_count[0] = sl->ref_count[1] = 0;
|
||||||
|
break;
|
||||||
break;
|
break;
|
||||||
case NAL_DPA:
|
case NAL_DPA:
|
||||||
case NAL_DPB:
|
case NAL_DPB:
|
||||||
|
|||||||
Reference in New Issue
Block a user