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:
Arne Welzel 2025-05-19 20:48:14 +02:00
parent fdecfba6b4
commit 1ed38e7342

View file

@ -95,7 +95,7 @@ bool ValTrace::operator==(const ValTrace& vt) const {
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();