mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 12:38:20 +00:00
Fix potential crash TCP headers were captured incompletely.
Test case provided by Jonathan Ganz. BIT-1425 #close
This commit is contained in:
parent
d88e6b3f1a
commit
1b9ee38e69
4 changed files with 33 additions and 1 deletions
9
testing/btest/core/tcp/truncated-header.bro
Normal file
9
testing/btest/core/tcp/truncated-header.bro
Normal file
|
@ -0,0 +1,9 @@
|
|||
# @TEST-EXEC: bro -b -r $TRACES/tcp/truncated-header.pcap %INPUT >out
|
||||
# @TEST-EXEC: btest-diff out
|
||||
|
||||
event tcp_packet(c: connection, is_orig: bool, flags: string, seq: count, ack: count, len: count, payload: string)
|
||||
{
|
||||
# Just having this handler used to crash Bro on this trace.
|
||||
print network_time(), c$id;
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue