mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-03 05:10:03 +02:00
bsf/media100_to_mjpegb: Clear output buffer padding
Fixes: use-of-uninitialized-value Fixes: 70855/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MEDIA100_fuzzer-5537446610141184 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
d7f83fc2f4
commit
a0f22218f7
@ -148,6 +148,7 @@ second_field:
|
||||
AV_WB32(out->data + second_field_offset + 36, sod_offset[1] - second_field_offset);
|
||||
|
||||
out->size = bytestream2_tell_p(&pb);
|
||||
memset(out->data + out->size, 0, AV_INPUT_BUFFER_PADDING_SIZE);
|
||||
|
||||
ret = av_packet_copy_props(out, in);
|
||||
if (ret < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user