Closed awelzel closed 9 months ago
Thanks @awelzel.
I also found that let x = zeek.as("vector", [1,2,3]);
segfaults when zeek::Type::Tag()
is called on a null pointer.
A related problem (please let me know if I should open a separate issue for this): zeek.as()
won't accept the type name in set[count]
syntax - it has to be count_set
(and so on for other index types).
A related problem (please let me know if I should open a separate issue for this):
zeek.as()
won't accept the type name inset[count]
syntax - it has to becount_set
(and so on for other index types).
More accurately, I think you need a type alias. For types where no type alias is defined it doesn't work, e.g. this:
let port_set = [1,2,3];
zeek.as("set[port]", port_set);
...fails with 'set[port]' is not a Zeek type
.
I guess I could define aliases for every perumation of containers and index types, but that will only work for built-in types.
Reported by @simeonmiteff , using
zeek.as()
with just "table" as type_name argument causes a TypeError and sometimes crash.