mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 05:28:20 +00:00
Fix segfault when an existing enum identifier is added again with a
different value. Addresses BIT-931. Also switching the internal enum ID map to storing std::string for easier memory management.
This commit is contained in:
parent
721693425f
commit
ca3f7eadbe
5 changed files with 35 additions and 20 deletions
7
testing/btest/core/enum-redef-exists.bro
Normal file
7
testing/btest/core/enum-redef-exists.bro
Normal file
|
@ -0,0 +1,7 @@
|
|||
# @TEST-EXEC: bro -b %INPUT >output
|
||||
|
||||
module SSH;
|
||||
|
||||
export {
|
||||
redef enum Log::ID += { LOG };
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue