Commit d20200d3 authored by Michael Niedermayer's avatar Michael Niedermayer

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/ffmpegSigned-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit c03029a8)
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 02a5e88e
...@@ -1023,7 +1023,8 @@ again: ...@@ -1023,7 +1023,8 @@ again:
#endif #endif
} else } else
context_count++; context_count++;
} } else
sl->ref_count[0] = sl->ref_count[1] = 0;
break; break;
case NAL_DPA: case NAL_DPA:
case NAL_DPB: case NAL_DPB:
......
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