[Bro-Dev] [JIRA] (BIT-1202) Segfault with double redef of table[subnet] of subnet
grigorescu (JIRA)
jira at bro-tracker.atlassian.net
Tue Jun 10 07:01:07 PDT 2014
grigorescu created BIT-1202:
-------------------------------
Summary: Segfault with double redef of table[subnet] of subnet
Key: BIT-1202
URL: https://bro-tracker.atlassian.net/browse/BIT-1202
Project: Bro Issue Tracker
Issue Type: Problem
Components: Bro
Affects Versions: git/master
Reporter: grigorescu
Ran into this issue last night. The following code causes a segfault:
{code}
const my_table: table[subnet] of subnet &redef;
redef my_table[3.0.0.0/8] = 1.0.0.0/8;
redef my_table[3.0.0.0/8] = 2.0.0.0/8;
event bro_init()
{
if ( 3.1.2.3 in my_table && 3.1.2.3 in my_table[3.0.0.0/8] )
print "Got it.";
}
{code}
While it's a logic mistake to doubly redef this, I think there's a ref-tracking issue that should be fixed.
--
This message was sent by Atlassian JIRA
(v6.3-OD-06-017#6327)
More information about the bro-dev
mailing list