mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14:08:20 +00:00
fix for crashes when record definitions repeat a field name
This commit is contained in:
parent
83a6faec3c
commit
a172617250
3 changed files with 55 additions and 13 deletions
|
@ -6,8 +6,39 @@ type test: record {
|
|||
a: string &optional;
|
||||
};
|
||||
|
||||
type r1: record {
|
||||
a: count;
|
||||
b: count;
|
||||
};
|
||||
|
||||
type r2: record {
|
||||
a: count;
|
||||
a: count;
|
||||
};
|
||||
|
||||
type r3: record {
|
||||
b: count;
|
||||
a: count;
|
||||
a: count;
|
||||
};
|
||||
|
||||
type r4: record {
|
||||
a: count;
|
||||
b: count;
|
||||
a: count;
|
||||
b: count;
|
||||
a: count;
|
||||
c: count;
|
||||
};
|
||||
|
||||
global x1: r1;
|
||||
global x2: r2;
|
||||
global x3: r3;
|
||||
global x4: r4;
|
||||
|
||||
event zeek_init()
|
||||
{
|
||||
local a = test($a=5);
|
||||
print a;
|
||||
print x1, x2, x3, x4;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue