mirror of https://github.com/google/oss-fuzz.git
bda7806c64
This is about https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=68147 and https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=68320 In some testcases, the resulting output can be large. When the output buffer is only increased by the smallest necessary amount (16384 for libyaml), that can cause a lot of calls to realloc, which gets expensive the bigger the buffer gets. This commit will double the allocated space when it's too small, resulting in much faster processing, where previously the fuzzer ran into a 25s timeout (e.g. only 1.5s now for issue 68147). |
||
---|---|---|
.. | ||
Dockerfile | ||
build.sh | ||
libyaml_deconstructor_alt_fuzzer.c | ||
libyaml_deconstructor_fuzzer.c | ||
libyaml_dumper_fuzzer.c | ||
libyaml_emitter_fuzzer.c | ||
libyaml_fuzzer.options | ||
libyaml_loader_fuzzer.c | ||
libyaml_parser_fuzzer.c | ||
libyaml_reformatter_alt_fuzzer.c | ||
libyaml_reformatter_fuzzer.c | ||
libyaml_scanner_fuzzer.c | ||
project.yaml | ||
yaml.dict | ||
yaml_write_handler.h |