fix for crashes when record definitions repeat a field name

This commit is contained in:
Vern Paxson 2023-01-10 13:51:36 -08:00
parent 83a6faec3c
commit a172617250
3 changed files with 55 additions and 13 deletions

View file

@ -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;
}