mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
tools/target_dec_fuzzer: Do not corrupt the packet size return
Fixes: Timeout (infinite) Fixes: 16732/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TAK_fuzzer-5642166377906176 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
8f49176e84
commit
5af613cc48
@ -219,8 +219,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
||||
if (!avpkt.buf)
|
||||
error("Failed memory allocation");
|
||||
} else {
|
||||
ret = av_packet_make_refcounted(&avpkt);
|
||||
if (ret < 0)
|
||||
if (av_packet_make_refcounted(&avpkt) < 0)
|
||||
error("Failed memory allocation");
|
||||
}
|
||||
parsepkt.data += ret;
|
||||
|
Loading…
Reference in New Issue
Block a user