mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Merge remote-tracking branch 'origin/topic/christian/fix-config-segfault'
* origin/topic/christian/fix-config-segfault: Btest tweak for improved type rendering in config framework errors and set types More precise type information in a config framework error message Explicitly don't support sets with multiple index types in input/config frameworks
This commit is contained in:
commit
079d4164c0
7 changed files with 49 additions and 8 deletions
|
@ -124,8 +124,13 @@ function format_value(value: any) : string
|
|||
{
|
||||
local tn = type_name(value);
|
||||
local part: string_vec = vector();
|
||||
if ( /^set/ in tn )
|
||||
|
||||
if ( /^set/ in tn && strstr(tn, ",") == 0 )
|
||||
{
|
||||
# The conversion to set here is tricky and assumes
|
||||
# that the set isn't indexed via a tuple of types.
|
||||
# The above check for commas in the type name
|
||||
# ensures this.
|
||||
local it: set[bool] = value;
|
||||
for ( sv in it )
|
||||
part += cat(sv);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue