mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-18 05:11:09 +00:00
tools/target_dec_fuzzer: Init parsepkt
Fixes: memory corruption Fixes: 16702/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_PNG_fuzzer-5768418552184832 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
c79d6728a7
commit
a370582ba9
@ -194,6 +194,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
||||
// Read very simple container
|
||||
AVPacket avpkt, parsepkt;
|
||||
av_init_packet(&avpkt);
|
||||
av_init_packet(&parsepkt);
|
||||
while (data < end && it < maxiteration) {
|
||||
// Search for the TAG
|
||||
while (data + sizeof(fuzz_tag) < end) {
|
||||
|
Loading…
Reference in New Issue
Block a user