]> git.ipfire.org Git - thirdparty/pdns.git/commit
Fix building our fuzzing targets from a dist tarball
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 16 Aug 2023 13:16:33 +0000 (15:16 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 16 Aug 2023 13:53:34 +0000 (15:53 +0200)
commitcabda036928ed338184b4a7a677d7f51b35c21b2
tree76402f6274b8975684c287b6661eb46a29ccfcf3
parente5baf098b18a4f527e08772ee3734148ed48d524
Fix building our fuzzing targets from a dist tarball

Until now all of our fuzzing targets where built with the authoritative
server, even though one of them is specific to dnsdist.
This made it easy to build all of them at once, especially for OSS-Fuzz
and CI-Fuzz, but had the unfortunate drawback of pulling several
dnsdist-specific files into the main pdns/ directory for no good
reason. It also prevented building the fuzzing targets from a dist
tarball/directory.
This commit moves the dnsdist-specific fuzzing target to the dnsdist
build process, and ensure that the standalone_fuzz_target_runner.cc
file is part of the dist tarball, making it possible to build the
fuzzing targets from the dist.
It does not move the dnsdist-specific files to the pdns/dnsdistdist/
directory yet because this would conflict with existing PRs.
fuzzing/README.md
pdns/Makefile.am
pdns/dnsdistdist/Makefile.am
pdns/dnsdistdist/configure.ac
pdns/dnsdistdist/fuzz_dnsdistcache.cc [moved from pdns/fuzz_dnsdistcache.cc with 100% similarity]
pdns/dnsdistdist/fuzz_target_dnsdistcache [new file with mode: 0755]
pdns/dnsdistdist/m4/pdns_enable_fuzz_targets.m4 [new symlink]
pdns/dnsdistdist/standalone_fuzz_target_runner.cc [new symlink]
tasks.py