oss-fuzz/projects/libyaml
Tina Müller (tinita) bda7806c64
libyaml: Improve buffer efficiency (#11848)
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).
2024-04-27 15:50:13 +01:00
..
Dockerfile
build.sh
libyaml_deconstructor_alt_fuzzer.c libyaml: Improve buffer efficiency (#11848) 2024-04-27 15:50:13 +01:00
libyaml_deconstructor_fuzzer.c libyaml: Improve buffer efficiency (#11848) 2024-04-27 15:50:13 +01:00
libyaml_dumper_fuzzer.c libyaml: Improve buffer efficiency (#11848) 2024-04-27 15:50:13 +01:00
libyaml_emitter_fuzzer.c libyaml: Improve buffer efficiency (#11848) 2024-04-27 15:50:13 +01:00
libyaml_fuzzer.options
libyaml_loader_fuzzer.c
libyaml_parser_fuzzer.c
libyaml_reformatter_alt_fuzzer.c libyaml: Improve buffer efficiency (#11848) 2024-04-27 15:50:13 +01:00
libyaml_reformatter_fuzzer.c libyaml: Improve buffer efficiency (#11848) 2024-04-27 15:50:13 +01:00
libyaml_scanner_fuzzer.c
project.yaml
yaml.dict
yaml_write_handler.h libyaml: Improve buffer efficiency (#11848) 2024-04-27 15:50:13 +01:00