summaryrefslogtreecommitdiff
path: root/wscript_build
diff options
context:
space:
mode:
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>2019-10-31 16:28:28 +1300
committerAndrew Bartlett <abartlet@samba.org>2019-12-10 07:50:28 +0000
commit7b265830ad6796dbbe721f7abfd62a19c2185b65 (patch)
tree86dea325c0e73ef5765b6768a1a8bfade35602d2 /wscript_build
parentef5d79e24ba8aec226419e594de0cf91c24d7fc4 (diff)
downloadsamba-7b265830ad6796dbbe721f7abfd62a19c2185b65.tar.gz
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>
Diffstat (limited to 'wscript_build')
-rw-r--r--wscript_build6
1 files changed, 5 insertions, 1 deletions
diff --git a/wscript_build b/wscript_build
index f9e033c0dab..b2e32987acb 100644
--- a/wscript_build
+++ b/wscript_build
@@ -38,6 +38,11 @@ bld.CONFIGURE_FILE('docs-xml/build/DTD/samba.build.version',
DOC_VERSION=bld.env.DOC_VERSION)
bld.RECURSE('docs-xml')
+# This needs to be earlier than anything containing IDL
+# That in turn allows the build rules for fuzz_ndr_X to be
+# near the code
+bld.RECURSE('lib/fuzzing')
+
bld.RECURSE('lib/replace')
bld.RECURSE('lib/socket')
bld.RECURSE('lib/talloc')
@@ -150,7 +155,6 @@ bld.RECURSE('dfs_server')
bld.RECURSE('file_server')
bld.RECURSE('lib/krb5_wrap')
bld.RECURSE('packaging')
-bld.RECURSE('lib/fuzzing')
bld.RECURSE('testsuite/headers')