mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 20:48:21 +00:00
GH-208: change invalid subnet expressions to a runtime error
Rather than abort.
This commit is contained in:
parent
67484a90fa
commit
01a8418d79
4 changed files with 65 additions and 11 deletions
26
testing/btest/language/subnet-errors.bro
Normal file
26
testing/btest/language/subnet-errors.bro
Normal file
|
@ -0,0 +1,26 @@
|
|||
# @TEST-EXEC: bro -b %INPUT >out 2>&1
|
||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff out
|
||||
|
||||
event bro_init()
|
||||
{
|
||||
local i = 32;
|
||||
print 1.2.3.4/i;
|
||||
++i;
|
||||
print 1.2.3.4/i;
|
||||
print "init 1";
|
||||
}
|
||||
|
||||
event bro_init()
|
||||
{
|
||||
local i = 128;
|
||||
print [::]/i;
|
||||
++i;
|
||||
print [::]/i;
|
||||
print "init 1";
|
||||
}
|
||||
|
||||
event bro_init() &priority=-10
|
||||
{
|
||||
print "init last";
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue