summaryrefslogtreecommitdiff
path: root/librpc
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2019-12-13 15:34:34 +1300
committerAndrew Bartlett <abartlet@samba.org>2019-12-18 06:39:26 +0000
commit5eac5813cc42ab4f17858e61cc512bace4d3bad2 (patch)
tree977dd467deda6a40149964d8ce9b1b3b87d879a1 /librpc
parentbbc4ebbcaf3e602cf11816a24e58f4dc3eed7d8d (diff)
downloadsamba-5eac5813cc42ab4f17858e61cc512bace4d3bad2.tar.gz
lib/fuzzing and librpc: Do not generate fuzzers for pointless targets
We need to focus the fuzzing effort on reachable code, and these IDL are just historical artifacts, many are entirely [todo] and have no samba client nor server. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Diffstat (limited to 'librpc')
-rw-r--r--librpc/idl/wscript_build22
1 files changed, 8 insertions, 14 deletions
diff --git a/librpc/idl/wscript_build b/librpc/idl/wscript_build
index 5dda944ca71..830308491da 100644
--- a/librpc/idl/wscript_build
+++ b/librpc/idl/wscript_build
@@ -71,16 +71,22 @@ bld.SAMBA_PIDL_LIST('PIDL',
generate_fuzzers=False)
# DCE/RPC protocols which Samba does not implement a client or server
-# for
+# for. We don't generate a fuzzer for these as they are unreachable
+#
+# Do not include IDL with public structures in this list as we want to
+# fuzz those
bld.SAMBA_PIDL_LIST('PIDL',
'''
audiosrv.idl
+ dbgidl.idl
+ dsbackup.idl
efs.idl
frstrans.idl
frsrpc.idl
keysvc.idl
msgsvc.idl
+ orpc.idl
policyagent.idl
rot.idl
scerpc.idl
@@ -89,20 +95,9 @@ bld.SAMBA_PIDL_LIST('PIDL',
wzcsvc.idl
''',
options='--header --ndr-parser',
+ generate_fuzzers=False,
output_dir='../gen_ndr')
-# The interface names here are not the same as the IDL name, so the
-# auto-genration of the fuzzer fails to link
-
-bld.SAMBA_PIDL_LIST('PIDL',
- '''
- dsbackup.idl
- orpc.idl
- ''',
- options='--header --ndr-parser',
- output_dir='../gen_ndr',
- generate_fuzzers=False)
-
# Non-DCE/RPC protocols encoded in IDL for Samba or helper IDLs for
# DCE/RPC protocols (eg defining constands or structures but not
# functions)
@@ -110,7 +105,6 @@ bld.SAMBA_PIDL_LIST('PIDL',
'''
bkupblobs.idl
cab.idl
- dbgidl.idl
file_id.idl
fscc.idl
fsrvp_state.idl