summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2019-11-29 12:07:34 +1300
committerAndrew Bartlett <abartlet@samba.org>2019-12-10 07:50:28 +0000
commit6f7a9e87887e50160df6a06b09d8454eef9208a1 (patch)
tree852ea570c34bbf5d7ccf793880fa0de185869e06 /buildtools
parent3ca76f59070020ea188bea88bece38d8c9036f59 (diff)
downloadsamba-6f7a9e87887e50160df6a06b09d8454eef9208a1.tar.gz
lib/fuzzing: Link only the required NDR_ subsystems into ndr_fuzz_X binaries
This reduces the binary size and shows that we are linked against the correct ndr_table_ global variable. This might help the fuzzing engine know there is not much more of the binary to find if unreachable code is not included. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Diffstat (limited to 'buildtools')
-rw-r--r--buildtools/wafsamba/samba_pidl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildtools/wafsamba/samba_pidl.py b/buildtools/wafsamba/samba_pidl.py
index 8785563e5e6..b92120edd23 100644
--- a/buildtools/wafsamba/samba_pidl.py
+++ b/buildtools/wafsamba/samba_pidl.py
@@ -123,7 +123,7 @@ def SAMBA_PIDL_LIST(bld, name, source,
# the fuzzers rely
if generate_tables and generate_fuzzers:
interface = p[0:-4] # strip off the .idl suffix
- bld.SAMBA_NDR_FUZZ(interface)
+ bld.SAMBA_NDR_FUZZ(interface, auto_deps=True)
Build.BuildContext.SAMBA_PIDL_LIST = SAMBA_PIDL_LIST