mirror of
https://github.com/Kitware/CMake.git
synced 2026-06-24 08:47:59 +00:00
Cap the number of ELF sections, the section size, and the number of dynamic entries to reasonable limits for real-world binaries to prevent OOM on malformed inputs.
Fuzzing Seed Corpora
====================
This directory contains seed corpus files for the CMake fuzz targets.
Each subdirectory corresponds to a specific fuzzer.
Regenerating Binary Corpus Files
--------------------------------
Some corpus files are binary and include generation scripts for reproducibility:
- ``elf/generate.py`` - Generates minimal ELF headers for cmELFFuzzer
To regenerate::
cd elf && python3 generate.py
Adding New Corpus Files
-----------------------
When adding new corpus files:
1. Keep files minimal - smaller seeds lead to faster fuzzing
2. For binary formats, include a generation script
3. Cover different code paths and edge cases
4. Avoid duplicating coverage between files