[FFmpeg-devel] [PATCH v2] tools: add a fuzzer tool for bitstream filters
James Almer
jamrial at gmail.com
Fri Dec 6 01:33:35 EET 2019
On 12/5/2019 6:57 PM, Michael Niedermayer wrote:
> On Tue, Dec 03, 2019 at 06:05:41PM -0300, James Almer wrote:
>> Signed-off-by: James Almer <jamrial at gmail.com>
>> ---
>> tools/Makefile | 3 +
>> tools/target_bsf_fuzzer.c | 153 ++++++++++++++++++++++++++++++++++++++
>> 2 files changed, 156 insertions(+)
>> create mode 100644 tools/target_bsf_fuzzer.c
>>
>> diff --git a/tools/Makefile b/tools/Makefile
>> index 370ee35416..001093105b 100644
>> --- a/tools/Makefile
>> +++ b/tools/Makefile
>> @@ -5,6 +5,9 @@ TOOLS-$(CONFIG_ZLIB) += cws2fws
>> tools/target_dec_%_fuzzer.o: tools/target_dec_fuzzer.c
>> $(COMPILE_C) -DFFMPEG_DECODER=$*
>>
>> +tools/target_bsf_%_fuzzer.o: tools/target_bsf_fuzzer.c
>> + $(COMPILE_C) -DFFMPEG_BSF=$*
>> +
>> tools/target_dem_fuzzer.o: tools/target_dem_fuzzer.c
>> $(COMPILE_C)
>
> This is missing something like:
> diff --git a/Makefile b/Makefile
> index 532372c9c4..7a0700a80b 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -50,6 +50,9 @@ $(TOOLS): %$(EXESUF): %.o
> target_dec_%_fuzzer$(EXESUF): target_dec_%_fuzzer.o $(FF_DEP_LIBS)
> $(LD) $(LDFLAGS) $(LDEXEFLAGS) $(LD_O) $^ $(ELIBS) $(FF_EXTRALIBS) $(LIBFUZZER_PATH)
>
> +target_bsf_%_fuzzer$(EXESUF): target_bsf_%_fuzzer.o $(FF_DEP_LIBS)
> + $(LD) $(LDFLAGS) $(LDEXEFLAGS) $(LD_O) $^ $(ELIBS) $(FF_EXTRALIBS) $(LIBFUZZER_PATH)
> +
> tools/target_dem_fuzzer$(EXESUF): tools/target_dem_fuzzer.o $(FF_DEP_LIBS)
> $(LD) $(LDFLAGS) $(LDEXEFLAGS) $(LD_O) $^ $(ELIBS) $(FF_EXTRALIBS) $(LIBFUZZER_PATH)
>
> LGTM otherwise, only tested locally though
>
> thx
Will add the above and push. Thanks.
More information about the ffmpeg-devel
mailing list