mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
EventTrace: Fix operator==() UBSAN downcast error
New test triggered the following error: runtime error: downcast of address 0x57021a323ea0 which does not point to an object of type 'const FileVal' 0x57021a323ea0: note: object is of type 'zeek::FuncVal'
This commit is contained in:
parent
fdecfba6b4
commit
1ed38e7342
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ bool ValTrace::operator==(const ValTrace& vt) const {
|
||||||
|
|
||||||
case TYPE_SUBNET: return v->AsSubNet() == vt_v->AsSubNet();
|
case TYPE_SUBNET: return v->AsSubNet() == vt_v->AsSubNet();
|
||||||
|
|
||||||
case TYPE_FUNC: return v->AsFile() == vt_v->AsFile();
|
case TYPE_FUNC: return v->AsFunc() == vt_v->AsFunc();
|
||||||
|
|
||||||
case TYPE_FILE: return v->AsFile() == vt_v->AsFile();
|
case TYPE_FILE: return v->AsFile() == vt_v->AsFile();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue