From e21cca4ba85a72bc94be4ad1c9c1053e70e08f58 Mon Sep 17 00:00:00 2001 From: Robin Sommer Date: Tue, 31 Jan 2017 14:52:37 -0800 Subject: [PATCH] Adding test with command line that used to trigger a crash. --- .../files.log | 10 ++++++++++ .../base/frameworks/file-analysis/byteranges.bro | 6 ++++++ 2 files changed, 16 insertions(+) create mode 100644 testing/btest/Baseline/scripts.base.frameworks.file-analysis.byteranges/files.log create mode 100644 testing/btest/scripts/base/frameworks/file-analysis/byteranges.bro diff --git a/testing/btest/Baseline/scripts.base.frameworks.file-analysis.byteranges/files.log b/testing/btest/Baseline/scripts.base.frameworks.file-analysis.byteranges/files.log new file mode 100644 index 0000000000..a8a12d0d2b --- /dev/null +++ b/testing/btest/Baseline/scripts.base.frameworks.file-analysis.byteranges/files.log @@ -0,0 +1,10 @@ +#separator \x09 +#set_separator , +#empty_field (empty) +#unset_field - +#path files +#open 2017-01-31-22-51-55 +#fields ts fuid tx_hosts rx_hosts conn_uids source depth analyzers mime_type filename duration local_orig is_orig seen_bytes total_bytes missing_bytes overflow_bytes timedout parent_fuid md5 sha1 sha256 extracted extracted_cutoff extracted_size +#types time string set[addr] set[addr] set[string] string count set[string] string string interval bool bool count count count count bool string string string string string bool count +1258867934.558264 F2xow8TIkvHG4Zz41 198.189.255.75 192.168.1.105 CHhAvVGS1DHFjwGM9 HTTP 0 EXTRACT - - 0.046240 - F 54229 605292323 4244449 0 T - - - - extract-1258867934.558264-HTTP-F2xow8TIkvHG4Zz41 T 4000 +#close 2017-01-31-22-51-55 diff --git a/testing/btest/scripts/base/frameworks/file-analysis/byteranges.bro b/testing/btest/scripts/base/frameworks/file-analysis/byteranges.bro new file mode 100644 index 0000000000..7cf0ef239c --- /dev/null +++ b/testing/btest/scripts/base/frameworks/file-analysis/byteranges.bro @@ -0,0 +1,6 @@ +# This used to crash the file reassemly code. +# +# @TEST-EXEC: bro -r $TRACES/http/byteranges.trace frameworks/files/extract-all-files FileExtract::default_limit=4000 +# +# @TEST-EXEC: btest-diff files.log +