RecordType: Ensure &default fields are always re-initialized

This started working partly after the deferral logic introduced with
Zeek 6.0 so this finishes it :-)
This commit is contained in:
Arne Welzel 2025-07-27 16:03:40 +02:00
parent 473723cc47
commit 9eb94ee151
4 changed files with 65 additions and 8 deletions

4
NEWS
View file

@ -298,6 +298,10 @@ Changed Functionality
`Analyzer::DebugLogging`. Furthermore the default options changed to enable
more detailed output by default.
- Record fields with a ``&default`` attribute are now consistently re-initialized
after deleting such fields. Previously, this would only work for constant
expressions, but has been extended to apply to arbitrary expressions.
- Publishing remote events with vector arguments that contain holes is now
rejected. The receiver side never had a chance to figure out where these
holes would have been. There's a chance this breaks scripts that accidentally