[Bro-Dev] [JIRA] (BIT-994) segmentation fault with anonymous enum
Jon Siwek (JIRA)
jira at bro-tracker.atlassian.net
Mon Mar 16 12:28:00 PDT 2015
[ https://bro-tracker.atlassian.net/browse/BIT-994?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jon Siwek updated BIT-994:
--------------------------
Resolution: Fixed
Status: Closed (was: Open)
The test case now emits an "incorrect syntax" error instead of segfaulting.
> segmentation fault with anonymous enum
> --------------------------------------
>
> Key: BIT-994
> URL: https://bro-tracker.atlassian.net/browse/BIT-994
> Project: Bro Issue Tracker
> Issue Type: Problem
> Components: Bro
> Affects Versions: git/master
> Reporter: dmandelb
> Priority: Low
> Fix For: 2.4
>
>
> This code:
> {noformat}
> global x: enum {FOO, BAR} = FOO;
> {noformat}
> Causes a segmentation fault with this backtrace:
> {noformat}
> #0 0x082733be in ID::Name (this=0x0) at /home/dmandelb/bro/src/ID.h:23
> BIT-1 0x0826a19e in parser_new_enum () at parse.y:142
> BIT-2 0x0826e068 in yyparse () at parse.y:850
> BIT-3 0x08281a42 in main (argc=5, argv=0xbffff2b4) at /home/dmandelb/bro/src/main.cc:801
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4-OD-15-055#64014)
More information about the bro-dev
mailing list