oss-fuzz/projects/binutils
Alan Modra 265c0fe0f2
binutils fuzzer trouble with getopt (#9976)
fuzz_objcopy.c calls copy_main that calls getopt. Without
reinitialisation of optind, this means that of the 100 iterations per
sample only the first would see the fake command line options. And if
another sample was then tested in the same running process, no iteration
would see the command line options. Fix this by setting optind. Do so
every second iteration because it's usefull to test with default options
too.

fuzz_addr2line set up five command line addresses but then only used
two. Fix that too, and use xmalloc/xstrdup so that malloc fails are
fatal.
2023-03-22 01:41:30 -07:00
..
Dockerfile binutils: don't use binutils-preconditions (#9865) 2023-03-06 18:25:03 +11:00
build.sh binutils: don't use binutils-preconditions (#9865) 2023-03-06 18:25:03 +11:00
fuzz_addr2line.c binutils fuzzer trouble with getopt (#9976) 2023-03-22 01:41:30 -07:00
fuzz_as.c Issue 56429 binutils/fuzz_as (#9843) 2023-03-01 22:02:01 +00:00
fuzz_bfd.c Call bfd_init on each test file (#9368) 2023-01-07 03:59:34 -08:00
fuzz_bfd_ext.c Call bfd_init on each test file (#9368) 2023-01-07 03:59:34 -08:00
fuzz_disas_ext.c binutils: align fuzzers with upstream (#7527) 2022-04-07 14:49:18 +01:00
fuzz_disassemble.c binutils: align fuzzers with upstream (#7527) 2022-04-07 14:49:18 +01:00
fuzz_dlltool.c binutils: extract various types of symbols in dlltool (#6785) 2021-11-06 13:24:12 +00:00
fuzz_dwarf.c binutils/fuzz_dwarf memory leak (#9784) 2023-02-23 02:27:53 -08:00
fuzz_nm.c binutils: don't use binutils-preconditions (#9865) 2023-03-06 18:25:03 +11:00
fuzz_objcopy.c binutils fuzzer trouble with getopt (#9976) 2023-03-22 01:41:30 -07:00
fuzz_objdump.c binutils: don't use binutils-preconditions (#9865) 2023-03-06 18:25:03 +11:00
fuzz_ranlib_simulation.c Fix binutils fuzzer build breakage (#9754) 2023-02-20 01:39:24 -08:00
fuzz_readelf.c binutils: add 3 new targetes readelfs (#7043) 2021-12-20 21:11:57 +00:00
fuzz_strings.c binutils: remove strings corpus and fix AFL build (#6717) 2021-11-01 11:36:38 +00:00
fuzz_windres.c Don't leak in binutils test infrastructure (#7874) 2022-06-16 13:03:53 +01:00
project.yaml Enable centipede on a bunch of projects (#9643) 2023-02-13 14:24:42 -05:00