mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-11-06 05:17:42 +00:00
tools/target_bsf_fuzzer: skip filters that av_bsf_alloc() does not support
This is not a security issue. Fixes: 538624321/clusterfuzz-testcase-minimized-ffmpeg_BSF_LCEVC_MERGE_fuzzer-6371982149746688 Fixes: lrIny8K4GGmb 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:
1 parent
561130d30b
commit
af1ed02d68
1 file changed
+2
@@ -60,6 +60,8 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
||||
}
|
||||
|
||||
res = f ? av_bsf_alloc(f, &bsf) : av_bsf_get_null_filter(&bsf);
|
||||
if (res == AVERROR(ENOTSUP))
|
||||
return 0; // multi-input filters cannot be used through av_bsf_alloc()
|
||||
if (res < 0)
|
||||
error("Failed memory allocation");
|
||||
f = bsf->filter;
|
||||
|
||||
Reference in new issue
Block a user