]> git.ipfire.org Git - thirdparty/suricata-verify.git/log
thirdparty/suricata-verify.git
2 years agotests: add bug 6244 RST with data tests 1344/head 1345/head
Victor Julien [Fri, 4 Aug 2023 06:59:16 +0000 (08:59 +0200)] 
tests: add bug 6244 RST with data tests

2 years agotests: add test for bug 6008 SMB_COM_WRITE_ANDX data offset issue
Lancer Cheng [Mon, 8 May 2023 10:00:44 +0000 (10:00 +0000)] 
tests: add test for bug 6008 SMB_COM_WRITE_ANDX data offset issue

Bug #6008

Updated by Victor Julien to:
- Trim pcap to only relevant flow
- Add readme and improve tests

2 years agotests/verdict: remove min check for version 7 1342/head
Juliana Fajardini [Fri, 28 Jul 2023 18:28:42 +0000 (15:28 -0300)] 
tests/verdict: remove min check for version 7

2 years agoiprep: Duplicate reputation check 1339/head
Jeff Lucovsky [Fri, 28 Apr 2023 14:08:52 +0000 (10:08 -0400)] 
iprep: Duplicate reputation check

Validate that duplicate reputation entries are handled properly and
don't cause a memory leak.

Issue: 5748

2 years agotests: fix exception policy tests 1338/head
Victor Julien [Sun, 30 Jul 2023 12:05:26 +0000 (14:05 +0200)] 
tests: fix exception policy tests

No need for elaborate checks for 6 and 7 for things that shouldn't
happen and can be checked in a simpler way.

Also, don't expect drops in IDS mode.

2 years agocreatest: skip pkt_src from test.yaml 1337/head
Shivani Bhardwaj [Thu, 27 Jul 2023 13:19:31 +0000 (18:49 +0530)] 
createst: skip pkt_src from test.yaml

2 years agodcerpc: add test for bug 6191
Shivani Bhardwaj [Tue, 25 Jul 2023 14:46:39 +0000 (20:16 +0530)] 
dcerpc: add test for bug 6191

2 years agoexception/default: test for behavior in 6 and 7
Juliana Fajardini [Mon, 10 Jul 2023 17:35:51 +0000 (14:35 -0300)] 
exception/default: test for behavior in 6 and 7

2 years agotests: check midstream exception policy in 6
Juliana Fajardini [Thu, 6 Jul 2023 23:22:36 +0000 (20:22 -0300)] 
tests: check midstream exception policy in 6

Related to
Bug #5825

2 years agofilestore-alert-log: require NSS 1332/head 1333/head
Shivani Bhardwaj [Thu, 27 Jul 2023 14:18:10 +0000 (19:48 +0530)] 
filestore-alert-log: require NSS

2 years agorun.py: add failed logs on each failing condition
Shivani Bhardwaj [Thu, 27 Jul 2023 10:58:05 +0000 (16:28 +0530)] 
run.py: add failed logs on each failing condition

2 years agorun.py: don't decode already decoded str
Shivani Bhardwaj [Wed, 26 Jul 2023 09:57:30 +0000 (15:27 +0530)] 
run.py: don't decode already decoded str

2 years agobug-6207: remove min-version check, require NSS
Shivani Bhardwaj [Tue, 25 Jul 2023 15:21:05 +0000 (20:51 +0530)] 
bug-6207: remove min-version check, require NSS

2 years agotests: filestore alert event 1325/head
Eric Leblond [Wed, 19 Oct 2022 14:07:00 +0000 (16:07 +0200)] 
tests: filestore alert event

2 years agodecode-event: Add test case for GRE packet too small 1321/head
Cole Dishington [Mon, 10 Jul 2023 02:09:16 +0000 (14:09 +1200)] 
decode-event: Add test case for GRE packet too small

Add test for IPv4 and IPv6 packets that set proto/next-header to GRE but
have an invalid payload.

Bug: #6222

2 years agoAdds test about DCE decoding
Philippe Antoine [Thu, 6 Jul 2023 09:35:02 +0000 (11:35 +0200)] 
Adds test about DCE decoding

Ticket: #3637

2 years agoworkflows: remove sphinx installation 1319/head
Shivani Bhardwaj [Wed, 19 Jul 2023 12:30:21 +0000 (18:00 +0530)] 
workflows: remove sphinx installation

2 years agotests/http2: add 6.0.x version of http2-files 1316/head suricata-7.0.0
Victor Julien [Sat, 15 Jul 2023 13:27:59 +0000 (15:27 +0200)] 
tests/http2: add 6.0.x version of http2-files

2 years agotest: issue 5868
Jason Ish [Thu, 1 Jun 2023 21:18:42 +0000 (15:18 -0600)] 
test: issue 5868

2 years agotests: remove duplicate 5mb pcap; rename to fix typo
Victor Julien [Sat, 15 Jul 2023 08:08:08 +0000 (10:08 +0200)] 
tests: remove duplicate 5mb pcap; rename to fix typo

2 years agotests: expand http2 file test
Victor Julien [Fri, 14 Jul 2023 04:42:58 +0000 (06:42 +0200)] 
tests: expand http2 file test

Limit to 7.

2 years agotests: add tests for verdict in alert and drop 1315/head
Juliana Fajardini [Tue, 11 Jul 2023 19:25:00 +0000 (16:25 -0300)] 
tests: add tests for verdict in alert and drop

Related to
Bug #5464

2 years agomime: add tests for bug 6207
Shivani Bhardwaj [Tue, 11 Jul 2023 16:40:40 +0000 (22:10 +0530)] 
mime: add tests for bug 6207

2 years agoconfig/swf: Test for SWF deprecation warning 1311/head
Jeff Lucovsky [Tue, 11 Jul 2023 12:58:09 +0000 (08:58 -0400)] 
config/swf: Test for SWF deprecation warning

Issue: 6182

2 years agotest/byte-math: Add 0 divisor test. 1309/head
Jeff Lucovsky [Thu, 30 Mar 2023 13:41:44 +0000 (09:41 -0400)] 
test/byte-math: Add 0 divisor test.

Issue: 5945

This commit adds a byte-math test with a zero divisor. Division by 0 is
undefined so there's no match.

2 years agotest: issue 4759
Jason Ish [Fri, 17 Feb 2023 18:33:15 +0000 (12:33 -0600)] 
test: issue 4759

2 years agotest: validate smb share match for bug #5799
Andreas Herz [Thu, 19 Jan 2023 09:18:49 +0000 (10:18 +0100)] 
test: validate smb share match for bug #5799

2 years agoAdds test about http authentication with bearer
Philippe Antoine [Tue, 20 Jun 2023 11:35:41 +0000 (13:35 +0200)] 
Adds test about http authentication with bearer

2 years agotls: adds a test for certificate without issuer 1304/head
Philippe Antoine [Tue, 20 Jun 2023 08:29:00 +0000 (10:29 +0200)] 
tls: adds a test for certificate without issuer

Ticket: #5439

2 years agotest/byte_math: Add nbyte variable name tests 1302/head 1303/head
Jeff Lucovsky [Sun, 9 Jul 2023 14:41:11 +0000 (10:41 -0400)] 
test/byte_math: Add nbyte variable name tests

Issue: 6145

Add tests related to nbyte variable name usage for byte_math

2 years agodetect/bytejump: Test for nbyte variable name
Jeff Lucovsky [Sat, 10 Jun 2023 13:28:45 +0000 (09:28 -0400)] 
detect/bytejump: Test for nbyte variable name

This commit adds tests with a rules that uses an nbyte variable name.

Issue: 6105

2 years agotest/byte_test: Add nbyte variable name tests
Jeff Lucovsky [Fri, 7 Jul 2023 15:30:33 +0000 (11:30 -0400)] 
test/byte_test: Add nbyte variable name tests

Issue: 6144

Add tests for new byte_test functionality that permits a variable name
to be used for nbytes.

2 years agosmtp: use simulate-ips and update test 1295/head 1299/head
Shivani Bhardwaj [Thu, 6 Jul 2023 13:18:37 +0000 (18:48 +0530)] 
smtp: use simulate-ips and update test

This gives a better estimate of file size and hash for the given pcap.

2 years agoFix test to use http object instead of http2 1296/head
Philippe Antoine [Tue, 20 Jun 2023 15:28:40 +0000 (17:28 +0200)] 
Fix test to use http object instead of http2

2 years agoAdds test for enip 1290/head
Philippe Antoine [Fri, 30 Jun 2023 13:48:55 +0000 (15:48 +0200)] 
Adds test for enip

Ticket: #3886

2 years agotests: add mixed case tls.fingerprint tests 1288/head
Victor Julien [Sun, 2 Jul 2023 08:12:16 +0000 (10:12 +0200)] 
tests: add mixed case tls.fingerprint tests

2 years agotests: filename/fileext tests
Victor Julien [Thu, 29 Jun 2023 19:14:47 +0000 (21:14 +0200)] 
tests: filename/fileext tests

2 years agotests: add filemagic/file.magic tests
Victor Julien [Thu, 29 Jun 2023 13:18:05 +0000 (15:18 +0200)] 
tests: add filemagic/file.magic tests

Tests for parsing, flowbit matching as well as legacy filemagic
keyword handling.

2 years agofilemagic: test interaction with flowbits
Eric Leblond [Tue, 19 Feb 2019 21:02:19 +0000 (22:02 +0100)] 
filemagic: test interaction with flowbits

2 years agotests: add tests for exception policy master switch 1286/head
Juliana Fajardini [Thu, 1 Dec 2022 15:10:10 +0000 (12:10 -0300)] 
tests: add tests for exception policy master switch

Add tests for the new master switch config for the Exception policies.
Added also a check in the exception-policy test that checks the default
behavior, to ensure that things work as expected with the master switch
disabled and the exception policies not set.

Task #5219

2 years agorfb: add test case for logging of partial txs
Sascha Steinbiss [Fri, 30 Jun 2023 08:18:02 +0000 (10:18 +0200)] 
rfb: add test case for logging of partial txs

2 years agoftp: Add test for FTP bounce attack detection 1283/head 1284/head
Cole Dishington [Tue, 23 May 2023 02:28:13 +0000 (14:28 +1200)] 
ftp: Add test for FTP bounce attack detection

Add test for false positive and true positive FTP bounce detection.

Bug: #6087

2 years agosmtp: do not check pcap_cnt for anomalies 1273/head
Philippe Antoine [Tue, 16 May 2023 10:07:12 +0000 (12:07 +0200)] 
smtp: do not check pcap_cnt for anomalies

2 years agobody_md5 : take every line into account,
Philippe Antoine [Mon, 28 Nov 2022 21:18:16 +0000 (22:18 +0100)] 
body_md5 : take every line into account,

also lines that are headers of sub mime parts

and do not take new line post boundary

2 years agosmtp: fix test to avoid counting eol
Philippe Antoine [Thu, 22 Jun 2023 13:13:37 +0000 (15:13 +0200)] 
smtp: fix test to avoid counting eol

which is part of boundary, not the file

Ticket: #6023

2 years agosmtp: Add test to match on attachment with md5
Thomas Winter [Mon, 15 May 2023 00:03:08 +0000 (12:03 +1200)] 
smtp: Add test to match on attachment with md5

Based on the filemd5 test but using smtp attachment instead.
The SMTP transaction contains the EICAR file as an attachment and
the expected md5 to match used is the standard md5 for the EICAR.

2 years agotest: pcap-log with lz4 write to non-writable directory 1271/head
Jason Ish [Wed, 28 Jun 2023 17:08:22 +0000 (11:08 -0600)] 
test: pcap-log with lz4 write to non-writable directory

Ticket: #5022

2 years agotests: add http2 multi-buf test for bug 5780 1270/head
Victor Julien [Sat, 11 Mar 2023 06:36:47 +0000 (07:36 +0100)] 
tests: add http2 multi-buf test for bug 5780

2 years agoAdds test about http event on chunk extension 1256/head
Philippe Antoine [Tue, 20 Jun 2023 10:02:57 +0000 (12:02 +0200)] 
Adds test about http event on chunk extension

2 years agoci: fix windows CI suricata-6.0.13
Philippe Antoine [Thu, 22 Jun 2023 13:34:34 +0000 (15:34 +0200)] 
ci: fix windows CI

By not having links, but using pcap in test.yaml

2 years agodecode-event: Add test for too small UDP and TCP packets 1263/head
Cole Dishington [Wed, 24 May 2023 23:25:08 +0000 (11:25 +1200)] 
decode-event: Add test for too small UDP and TCP packets

Add test for IPv4 and IPv6 packets that set proto/next-header to UDP and
TCP but have no payload.

Bug: #6086.

2 years agotests: add check for bug 6149
Juliana Fajardini [Wed, 14 Jun 2023 22:56:11 +0000 (19:56 -0300)] 
tests: add check for bug 6149

Related to
Bug #6149

2 years agodatasets: test to load invalid encoded string
Shivani Bhardwaj [Wed, 14 Jun 2023 12:26:57 +0000 (17:56 +0530)] 
datasets: test to load invalid encoded string

2 years agorun.py: allow matches on substrings in yaml
Shivani Bhardwaj [Wed, 14 Jun 2023 12:27:08 +0000 (17:57 +0530)] 
run.py: allow matches on substrings in yaml

2 years agogitignore: ignore csv file generated by test
Juliana Fajardini [Mon, 13 Mar 2023 15:26:25 +0000 (12:26 -0300)] 
gitignore: ignore csv file generated by test

datasets-bug-5109 test always generates a csv file. Make sure we don't
mistankenly add it to git.

2 years agotests: add test for multi-eve logging
Juliana Fajardini [Mon, 13 Mar 2023 11:34:54 +0000 (08:34 -0300)] 
tests: add test for multi-eve logging

2 years agotest: add test for bug 6109
Juliana Fajardini [Fri, 2 Jun 2023 00:42:21 +0000 (21:42 -0300)] 
test: add test for bug 6109

In IDS mode, with midstream disabled, it seems that the exception policy
'reject' is applying actions that should only be taken in IPS mode. This
leads to the flow being dropped (or logged as such?) in IDS mode. This
test showcases this.

Bug #6109

2 years agotests: add rule types check
Victor Julien [Tue, 23 May 2023 08:03:06 +0000 (10:03 +0200)] 
tests: add rule types check

2 years agotests/datasets-parent-path: skip filter checks on windows 1250/head
Jason Ish [Wed, 14 Jun 2023 17:50:56 +0000 (10:50 -0700)] 
tests/datasets-parent-path: skip filter checks on windows

The test is still run as validating the exit code is still useful.

2 years agorun.py: allow python lambda expression for requires
Jason Ish [Wed, 14 Jun 2023 17:49:47 +0000 (10:49 -0700)] 
run.py: allow python lambda expression for requires

Add a new require type, "lambda" which will require the Python lambda
expression to return a truthy value.

2 years agorun.py: use suricata_bin for suricata binary
Jason Ish [Wed, 14 Jun 2023 17:18:16 +0000 (10:18 -0700)] 
run.py: use suricata_bin for suricata binary

suricata_bin is set correctly on startup for Windows or Linux. Fixes
running suricata-verify on certain Windows environments.

2 years agotests/datasets: test for dataset write disabled
Jason Ish [Tue, 6 Jun 2023 22:17:24 +0000 (16:17 -0600)] 
tests/datasets: test for dataset write disabled

Test the configuration flag to disable dataset writes from rules.

Ticket: #6123

2 years agotests/datasets: test absolute and parent directory paths
Jason Ish [Tue, 6 Jun 2023 18:29:42 +0000 (12:29 -0600)] 
tests/datasets: test absolute and parent directory paths

Test that Suricata fails to load rules that use a state path with an
absolute filename, or contains a traversal into a parent directory is
not allowed.

Ticket: #6118

2 years agoreadme: add exit-code example
Jason Ish [Tue, 6 Jun 2023 18:19:46 +0000 (12:19 -0600)] 
readme: add exit-code example

Document how a specific exit-code can be tested for.

2 years agolua: enable lua rules for tests that use lua rules
Jason Ish [Wed, 7 Jun 2023 22:50:53 +0000 (16:50 -0600)] 
lua: enable lua rules for tests that use lua rules

2 years agotests/midstream: update test with midstream-policy 1247/head
Juliana Fajardini [Tue, 30 May 2023 22:12:14 +0000 (19:12 -0300)] 
tests/midstream: update test with midstream-policy

exception-policy-midstream-03: make README more explanatory.
bug-2491-02: adjust midstream-policy config value, as "drop-flow" is no
longer valid when midstream is enabled.

Related to
Bug #5825

2 years agotests: add bug-5825 tests for ips mode
Juliana Fajardini [Wed, 24 May 2023 20:26:30 +0000 (17:26 -0300)] 
tests: add bug-5825 tests for ips mode

Related to
Bug #5825

2 years agotests: add exception policy tests for midstream ids
Juliana Fajardini [Wed, 19 Apr 2023 18:25:25 +0000 (15:25 -0300)] 
tests: add exception policy tests for midstream ids

Related to
Bug #5825

2 years agoalert-testmyids: add target to rule 1243/head
Jason Ish [Fri, 5 May 2023 21:12:16 +0000 (15:12 -0600)] 
alert-testmyids: add target to rule

Choose a simple test to add the target keyword to as no other tests do
this. This will excercise the "source" and "target" fields in the JSON
schema.

2 years agotests/content: Validate dist/with length checks
Jeff Lucovsky [Wed, 7 Dec 2022 14:57:38 +0000 (09:57 -0500)] 
tests/content: Validate dist/with length checks

Ticket: 5740

This commit adds tests that validate the distance and within values are
constrained appropriately to the range [0, 1045876]

2 years agorun: Improve 'lt' version checking
Jeff Lucovsky [Fri, 2 Dec 2022 14:27:22 +0000 (09:27 -0500)] 
run: Improve 'lt' version checking

This commit improves version checking for the 'less than' case
the Suricata version exceeds the `lt-version` value.

E.g., when Suricata is 7.0.0 and the lt-version specifies 6.0.1

2 years agotest/vlan: 3-level VLAN test
Jeff Lucovsky [Mon, 8 Aug 2022 12:20:49 +0000 (08:20 -0400)] 
test/vlan: 3-level VLAN test

Issue: 2816

This commit tests for 3-level VLAN encapsulations.

2 years agohttp: check that custom logging does not collide
Philippe Antoine [Wed, 30 Nov 2022 15:38:52 +0000 (16:38 +0100)] 
http: check that custom logging does not collide

for content range header for instance

2 years agogithub: add pull request template
Jason Ish [Fri, 12 May 2023 20:02:22 +0000 (14:02 -0600)] 
github: add pull request template

For now it just asks for a Redmine ticket URL. We can use this to link
Suricata-Verify pull requests to Suricata features and pull requests,
potentially creating a script to update S-V pull requests when the
ticket status changes, or a Suricata pull request has been merged.

2 years agohttp2: move http.request_header keyword to new test 1238/head
Philippe Antoine [Thu, 23 Mar 2023 09:46:12 +0000 (10:46 +0100)] 
http2: move http.request_header keyword to new test

as it requires min version 7, and we do not want to mix it
with rules that already worked for version 6

2 years agoftp: fix command_data length 1233/head
Shivani Bhardwaj [Wed, 31 May 2023 07:46:15 +0000 (13:16 +0530)] 
ftp: fix command_data length

2 years agotests: fix sip based drop test for 6.0.x 1228/head
Victor Julien [Sat, 3 Jun 2023 06:27:33 +0000 (08:27 +0200)] 
tests: fix sip based drop test for 6.0.x

2 years agotests: update for fixed rate_filter drops 1224/head
Victor Julien [Thu, 1 Jun 2023 08:56:13 +0000 (10:56 +0200)] 
tests: update for fixed rate_filter drops

2 years agotests: fix drop tests
Victor Julien [Wed, 31 May 2023 14:14:34 +0000 (16:14 +0200)] 
tests: fix drop tests

2 years agotests: test flow droped but applayer event logged 1221/head
Juliana Fajardini [Mon, 22 Aug 2022 18:29:03 +0000 (15:29 -0300)] 
tests: test flow droped but applayer event logged

It seems that Suricata will log an applayer event for a dropped flow,
for the second packet of the flow. This test demonstrates such behavior,
so we can investigate it.

Related to
Task #5510

2 years agorun.py: Add dir in the output 1217/head
Alice Akaki [Tue, 1 Nov 2022 05:05:00 +0000 (01:05 -0400)] 
run.py: Add dir in the output

These changes were based on Blithe Brandon's PR #344
Task: #3144

2 years agotests: fix smtp long data line test on 6.0.x 1215/head
Victor Julien [Wed, 24 May 2023 07:51:17 +0000 (09:51 +0200)] 
tests: fix smtp long data line test on 6.0.x

2 years agodetect-icmp-id: add tests
Alice Akaki [Mon, 31 Oct 2022 23:52:05 +0000 (19:52 -0400)] 
detect-icmp-id: add tests

Task: #5622

2 years agotests: add test for flow.memcap exception policy
Juliana Fajardini [Mon, 20 Mar 2023 17:14:30 +0000 (14:14 -0300)] 
tests: add test for flow.memcap exception policy

2 years agossh: do not check for useless tx_id always 0 1209/head
Philippe Antoine [Wed, 17 May 2023 14:16:07 +0000 (16:16 +0200)] 
ssh: do not check for useless tx_id always 0

2 years agohttp2: adds more signature keywords test
Philippe Antoine [Mon, 3 Apr 2023 12:33:39 +0000 (14:33 +0200)] 
http2: adds more signature keywords test

Ticket: #4067

2 years agogithub-ci: fix almalinux version 1206/head
Jason Ish [Wed, 17 May 2023 13:35:17 +0000 (15:35 +0200)] 
github-ci: fix almalinux version

AlmaLinux:latest is now 9, and this job is for AlmaLinux 8.

2 years agosmtp: add test for long DATA line 1199/head
Shivani Bhardwaj [Fri, 21 Apr 2023 11:21:53 +0000 (16:51 +0530)] 
smtp: add test for long DATA line

2 years agotests: add test for bug 2917
Shivani Bhardwaj [Thu, 9 Feb 2023 17:15:09 +0000 (22:45 +0530)] 
tests: add test for bug 2917

2 years agodetect/content: Add negated endswith tests
Jeff Lucovsky [Mon, 27 Mar 2023 13:04:31 +0000 (09:04 -0400)] 
detect/content: Add negated endswith tests

Issue: 5541

This commit adds test cases for the issue discovered in 5541 so that
negated endswith are handled properly.

3 tests
- Negated endswith content that *should* match
- Negated endswith content that *shouldn't* match
- Negated endswith content that *should* match with a content match
  following it

For versions greater than 6.0.11

2 years agotest/run: Support `gt-version` verb
Jeff Lucovsky [Wed, 19 Apr 2023 12:43:36 +0000 (08:43 -0400)] 
test/run: Support `gt-version` verb

This commit adds support for the `gt-version` verb. This verb is used
when the current version is X but the test(s) is(are) only supported in
versions greater than X.

2 years agorfb: test rfb frames
Haleema Khan [Thu, 22 Dec 2022 09:01:45 +0000 (14:01 +0500)] 
rfb: test rfb frames

2 years agoAdds test for krb5_msg_type keyword 1198/head
Eloy Pérez González [Fri, 22 Oct 2021 10:44:03 +0000 (12:44 +0200)] 
Adds test for krb5_msg_type keyword

2 years agosmb: update pcap for test about ntlmssp
Philippe Antoine [Thu, 4 May 2023 07:11:46 +0000 (09:11 +0200)] 
smb: update pcap for test about ntlmssp

Turning off a ntlmssp bitflag, so that we are sure we pick the
right bit which is set for version parsing.

2 years agodetect: adds test with bsize:0
Philippe Antoine [Thu, 27 Apr 2023 09:52:07 +0000 (11:52 +0200)] 
detect: adds test with bsize:0

2 years agoAdds test about http.connection with to client 1157/head
Philippe Antoine [Wed, 29 Mar 2023 17:06:12 +0000 (19:06 +0200)] 
Adds test about http.connection with to client

Ticket: #5746

2 years agoAdds test about http mime with truncated file 1181/head suricata-6.0.11 suricata-6.0.12
Philippe Antoine [Mon, 30 Jan 2023 08:41:03 +0000 (09:41 +0100)] 
Adds test about http mime with truncated file

due to request.body_limit configuration value

2 years agotests: add test for bug 5867 FP drop log events
Juliana Fajardini [Thu, 16 Mar 2023 21:48:21 +0000 (18:48 -0300)] 
tests: add test for bug 5867 FP drop log events

Bug #5867

2 years agotests: fix smb bug 5770 pcap
Victor Julien [Tue, 18 Apr 2023 07:12:05 +0000 (09:12 +0200)] 
tests: fix smb bug 5770 pcap

2 years agotests: add test for bug 5881 stream overlap issue
Victor Julien [Tue, 28 Feb 2023 11:00:31 +0000 (12:00 +0100)] 
tests: add test for bug 5881 stream overlap issue