mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2026-05-04 13:43:17 -04:00
The fuzz targets should use malloc instead of mmap because libFuzzer doesn't seem to track mmap leaks. The ENABLE_FUZZ feature disables HAVE_MMAP which is supposed to disable use of mmap in favor of malloc, but it doesn't because checks for the ANONYMOUS_MAP feature execute even if HAVE_MMAP is disabled, and some mmap usage in libclamav only tests if ANONYMOUS_MAP is defined without checking HAVE_MMAP. This commit will only define ANONYMOUS_MAP if HAVE_MMAP is set.
4.8 KiB
4.8 KiB