lib/fuzzing: add fuzz_ndr_X
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Thu, 31 Oct 2019 03:28:28 +0000 (16:28 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 10 Dec 2019 07:50:28 +0000 (07:50 +0000)
commit7b265830ad6796dbbe721f7abfd62a19c2185b65
tree86dea325c0e73ef5765b6768a1a8bfade35602d2
parentef5d79e24ba8aec226419e594de0cf91c24d7fc4
lib/fuzzing: add fuzz_ndr_X

This NDR fuzzer links with each "interface" in the IDL files to
create avsingle binary.  This tries to matches what the fuzzing
engines desire.

It started as a copy of ndrdump but very little of that remains
in place.

The fancy build rules try to avoid needing a lof of boilerplate
in the wscript_build files and ensure new fuzzers are generated
and run when new IDL is added automatically.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Pair-programmed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
buildtools/wafsamba/samba_pidl.py
buildtools/wafsamba/wscript
lib/fuzzing/fuzz_ndr_X.c [new file with mode: 0644]
lib/fuzzing/wscript_build
librpc/idl/wscript_build
pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
wscript_build