mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Merge branch 'topic/christian/enumval-string-fix'
* topic/christian/enumval-string-fix: Bugfix: AsString() on an EnumVal will segfault
This commit is contained in:
commit
62442058e7
3 changed files with 9 additions and 3 deletions
4
CHANGES
4
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
|
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)
|
* GH-4522: smtp: Fix last_reply column in smtp.log for BDAT LAST (Arne Welzel, Corelight)
|
||||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
8.0.0-dev.417
|
8.0.0-dev.419
|
||||||
|
|
|
@ -267,7 +267,8 @@ const std::string& ComponentManager<C>::GetComponentName(EnumValPtr val) const {
|
||||||
if ( C* c = Lookup(val.get()) )
|
if ( C* c = Lookup(val.get()) )
|
||||||
return c->CanonicalName();
|
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;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -295,7 +296,8 @@ StringValPtr ComponentManager<C>::GetComponentNameVal(EnumValPtr val) const {
|
||||||
if ( C* c = Lookup(val.get()) )
|
if ( C* c = Lookup(val.get()) )
|
||||||
return c->CanonicalNameVal();
|
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;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue