diff --git a/CHANGES b/CHANGES index 7e74e007b5..96b7d714db 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,11 @@ +8.0.0-dev.142 | 2025-05-19 12:32:56 -0700 + + * EventTrace: Fix operator==() UBSAN downcast error (Arne Welzel, Corelight) + + 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' + 8.0.0-dev.140 | 2025-05-19 11:04:29 -0700 * Change from_json to return an error rather than print it. (Steve Smoot, Corelight) diff --git a/VERSION b/VERSION index d23b083288..b49e41f6e1 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -8.0.0-dev.140 +8.0.0-dev.142 diff --git a/src/EventTrace.cc b/src/EventTrace.cc index 6bdd083654..c348bcd023 100644 --- a/src/EventTrace.cc +++ b/src/EventTrace.cc @@ -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();