From 7b265830ad6796dbbe721f7abfd62a19c2185b65 Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Thu, 31 Oct 2019 16:28:28 +1300 Subject: 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 Signed-off-by: Andrew Bartlett Pair-programmed-by: Andrew Bartlett Reviewed-by: Andrew Bartlett --- wscript_build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'wscript_build') 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') -- cgit v1.2.1