Bugfix: Substitution token should not parse XML in template context#34
Merged
Bugfix: Substitution token should not parse XML in template context#34
Conversation
3 tasks
maximelb
added a commit
to refractionPOINT/evtx
that referenced
this pull request
Aug 12, 2025
* Bugfix: When parsed within a template BinXMLElementStart is not same (Velocidex#30) The struct layout is a bit different when parsed within a template or not. Typically events forwarded from a different system do not have a template interpolated so they will trigger this bug. Dependency identifier is optional: https://github.com/libyal/libevtx/blob/main/documentation/Windows%20XML%20Event%20Log%20(EVTX).asciidoc#414-element-start * Bugfix: Support multiple messages for the same Event ID (Velocidex#31) Some event ID have multiple messages stored in the message lists - these are generally designed for events which have different number of properties. So for example the message file might contain two messages for the same event id, one with 1 expansion and one with 2 expansions. Then the application might emit an event to the log file with 2 properties or only 1 property of the same event id. This pr stores both the messages and the number of expasions in the message set and is able to select the most appropriate one for each message - we aim to maximize the number of expasions available in the message string. * add chunk header LastEventRecOffset (Velocidex#32) Added the 'Last event record data offset' field to the Chunk Header because the data is present there. Reference: https://github.com/libyal/libevtx/blob/main/documentation/Windows%20XML%20Event%20Log%20(EVTX).asciidoc#31-chunk-header * Bugfix: Substitution token should not parse XML in template context (Velocidex#34) Fixes: Velocidex#33 --------- Co-authored-by: Mike Cohen <scudette@users.noreply.github.com> Co-authored-by: dora <dora.cpphp@gmail.com>
maximelb
added a commit
to refractionPOINT/evtx
that referenced
this pull request
Aug 21, 2025
* Bugfix: When parsed within a template BinXMLElementStart is not same (Velocidex#30) The struct layout is a bit different when parsed within a template or not. Typically events forwarded from a different system do not have a template interpolated so they will trigger this bug. Dependency identifier is optional: https://github.com/libyal/libevtx/blob/main/documentation/Windows%20XML%20Event%20Log%20(EVTX).asciidoc#414-element-start * Bugfix: Support multiple messages for the same Event ID (Velocidex#31) Some event ID have multiple messages stored in the message lists - these are generally designed for events which have different number of properties. So for example the message file might contain two messages for the same event id, one with 1 expansion and one with 2 expansions. Then the application might emit an event to the log file with 2 properties or only 1 property of the same event id. This pr stores both the messages and the number of expasions in the message set and is able to select the most appropriate one for each message - we aim to maximize the number of expasions available in the message string. * add chunk header LastEventRecOffset (Velocidex#32) Added the 'Last event record data offset' field to the Chunk Header because the data is present there. Reference: https://github.com/libyal/libevtx/blob/main/documentation/Windows%20XML%20Event%20Log%20(EVTX).asciidoc#31-chunk-header * Bugfix: Substitution token should not parse XML in template context (Velocidex#34) Fixes: Velocidex#33 * Update deps and fix tomap rename. --------- Co-authored-by: Mike Cohen <scudette@users.noreply.github.com> Co-authored-by: dora <dora.cpphp@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes: #33