summaryrefslogtreecommitdiff
path: root/lib/fuzzing
diff options
context:
space:
mode:
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>2019-12-13 12:08:47 +1300
committerAndrew Bartlett <abartlet@samba.org>2020-01-12 19:50:37 +0000
commite1c6e7d18b446b55634bb4807c6d1a9e9346bd6c (patch)
treebec96a9a1dea8c529bb88def2730dcf9416ce852 /lib/fuzzing
parente61ddeef4cc35402b623dbb655ab06058866bfc4 (diff)
downloadsamba-e1c6e7d18b446b55634bb4807c6d1a9e9346bd6c.tar.gz
decode_ndr_X_crash: always find pipe in honggfuzz file
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'lib/fuzzing')
-rwxr-xr-xlib/fuzzing/decode_ndr_X_crash2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fuzzing/decode_ndr_X_crash b/lib/fuzzing/decode_ndr_X_crash
index 8ca5922449f..63c3cd747d7 100755
--- a/lib/fuzzing/decode_ndr_X_crash
+++ b/lib/fuzzing/decode_ndr_X_crash
@@ -115,7 +115,7 @@ def main():
for line in f:
m = re.match(r'^\s*fuzzTarget\s*:\s*bin/fuzz_ndr_(\w+)\s*$', line)
if m:
- pipe = m.group(1)
+ pipe = m.group(1).split('_TYPE_', 1)[0]
print_if_verbose(f"found pipe {pipe}")
m = re.match(r'^FUZZ_FNAME: (\S+)$', line)
if m: