diff --git a/CHANGES b/CHANGES index 593355a235..2c856be858 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,7 @@ +8.0.0-dev.419 | 2025-06-11 09:00:46 -0700 + + * Bugfix: AsString() on an EnumVal will segfault (Christian Kreibich, Corelight) + 8.0.0-dev.417 | 2025-06-11 17:24:11 +0200 * GH-4522: smtp: Fix last_reply column in smtp.log for BDAT LAST (Arne Welzel, Corelight) diff --git a/VERSION b/VERSION index 5930d5126c..c5b6ef66b4 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -8.0.0-dev.417 +8.0.0-dev.419 diff --git a/src/plugin/ComponentManager.h b/src/plugin/ComponentManager.h index 016623069c..89b9efe976 100644 --- a/src/plugin/ComponentManager.h +++ b/src/plugin/ComponentManager.h @@ -267,7 +267,8 @@ const std::string& ComponentManager::GetComponentName(EnumValPtr val) const { if ( C* c = Lookup(val.get()) ) return c->CanonicalName(); - reporter->InternalWarning("requested name of unknown component tag %s", val->AsString()->CheckString()); + reporter->InternalWarning("requested name of unknown component tag %s", + val->GetType()->AsEnumType()->Lookup(val->Get())); return error; } @@ -295,7 +296,8 @@ StringValPtr ComponentManager::GetComponentNameVal(EnumValPtr val) const { if ( C* c = Lookup(val.get()) ) return c->CanonicalNameVal(); - reporter->InternalWarning("requested name of unknown component tag %s", val->AsString()->CheckString()); + reporter->InternalWarning("requested name of unknown component tag %s", + val->GetType()->AsEnumType()->Lookup(val->Get())); return error; }