[Bro-Dev] [JIRA] (BIT-1202) Segfault with double redef of table[subnet] of subnet
Robin Sommer (JIRA)
jira at bro-tracker.atlassian.net
Wed Jun 11 14:28:07 PDT 2014
[ https://bro-tracker.atlassian.net/browse/BIT-1202?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robin Sommer updated BIT-1202:
------------------------------
Resolution: Merged
Status: Closed (was: Open)
> 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
> Fix For: 2.3
>
>
> 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