mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 04:58:21 +00:00
Spicy: Rework code for converting Spicy values to Zeek values.
The logic was template-based so far, which wasn't great because: (1) conceptually, it models the Spicy types at the wrong layer (C++ rather than HILTI types), and (2) stopped working with some recent Spicy updates (which we have temporarily reverted in the meantime to keep Zeek working). The new code is based on HILTI's runtime type information and the corresponding introspection API, pretty much like `spicy-dump` works as well. This is the recommended approach for working with HILTI values, and generally much cleaner. This is on top of https://github.com/zeek/zeek/pull/4300.
This commit is contained in:
parent
af46322152
commit
000ed528dc
3 changed files with 424 additions and 481 deletions
|
@ -1,2 +1,2 @@
|
|||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
||||
XXXXXXXXXX.XXXXXX analyzer error in <...>/test.evt, line 5: Event parameter mismatch, cannot convert Spicy value of type 'string' to Zeek value of type 'count'
|
||||
XXXXXXXXXX.XXXXXX analyzer error in <...>/test.evt, line 5: Event parameter mismatch, cannot convert Spicy value of type 'bytes' to Zeek value of type 'count'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue