mirror of https://github.com/google/oss-fuzz.git
![]() 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. |
||
---|---|---|
.. | ||
Dockerfile | ||
build.sh | ||
fuzz_addr2line.c | ||
fuzz_as.c | ||
fuzz_bfd.c | ||
fuzz_bfd_ext.c | ||
fuzz_disas_ext.c | ||
fuzz_disassemble.c | ||
fuzz_dlltool.c | ||
fuzz_dwarf.c | ||
fuzz_nm.c | ||
fuzz_objcopy.c | ||
fuzz_objdump.c | ||
fuzz_ranlib_simulation.c | ||
fuzz_readelf.c | ||
fuzz_strings.c | ||
fuzz_windres.c | ||
project.yaml |