Bump Spicy to pull in fix.

Includes a new regression test.

Closes #4501.
This commit is contained in:
Robin Sommer 2025-05-28 12:20:44 +02:00
parent 9ffc87a90e
commit e494fb5d19
No known key found for this signature in database
GPG key ID: D8187293B3FFE5D0
3 changed files with 48 additions and 1 deletions

@ -1 +1 @@
Subproject commit 4fe22b915e5f1ac26c08412fed2bfc2dbc36bfb3
Subproject commit 992444228151b193379e93403f8d486a6bf37878

View file

@ -0,0 +1,8 @@
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
INIT, (192.168.72.14, 3254/tcp, 65.54.95.206, 80/tcp), True
INIT, (192.168.72.14, 3254/tcp, 65.54.95.206, 80/tcp), False
DONE, (192.168.72.14, 3254/tcp, 65.54.95.206, 80/tcp), False
INIT, (192.168.72.14, 3257/tcp, 65.54.95.14, 80/tcp), True
INIT, (192.168.72.14, 3257/tcp, 65.54.95.14, 80/tcp), False
DONE, (192.168.72.14, 3257/tcp, 65.54.95.14, 80/tcp), False
DONE, (192.168.72.14, 3257/tcp, 65.54.95.14, 80/tcp), True

View file

@ -0,0 +1,39 @@
# @TEST-REQUIRES: have-spicy
#
# @TEST-EXEC: spicyz -d foo.spicy foo.evt -o foo.hlto
# @TEST-EXEC: zeek -Cr ${TRACES}/http/206_example_b.pcap foo.hlto "Spicy::enable_print=T" >output 2>&1
# @TEST-EXEC: btest-diff output
#
# @TEST-DOC: Exercise &eod behavior when processing is aborted without a regular connection shutdown; regression test for Zeek #4501.
#
# @TEST-START-FILE foo.spicy
module foo;
import zeek;
public type X = unit {
: bytes &eod;
on %init() {
print "INIT", zeek::conn_id(), zeek::is_orig();
}
on %done() {
print "DONE", zeek::conn_id(), zeek::is_orig(); # should not be called for instance not reaching &eod
}
on %error(e: string) {
print "ERROR: %s - should not show up" % e;
}
};
# @TEST-END-FILE
# @TEST-START-FILE foo.evt
import foo;
protocol analyzer X over TCP:
parse with foo::X,
port 0/tcp-65535/tcp;
# @TEST-END-FILE