Fix DAQ configuration validation and event linking - #127
pamirmundt wants to merge 1 commit into
Conversation
|
Hi Pamir, thank you for finding these issues and providing the regression tests. After reviewing the cases against XCP 1.4, I’ve decided to address them in a separate implementation rather than merge this PR as submitted. In particular, XCP specification §4.1.6 defines that an allocation memory overflow invalidates the complete DAQ configuration, so my implementation clears it instead of preserving it for an immediate smaller retry. Building on your tests, I added more AI generated test coverage for
I also kept your event id bounds check for configurations without dynamic event registration. The changes will be released in V2.2.2 Thanks again for the contribution. |
Thanks for reviewing this and taking care of the fixes. Glad the tests helped! |
Summary
Fix DAQ configuration commands that could partially modify internal state after returning an error, and make DAQ event-list linking safe and repeatable.
Changes
Why
A rejected DAQ configuration command could previously leave counters or metadata partially updated. This made a valid retry fail or operate on inconsistent state.
Repeatedly associating a DAQ list with an event could also create an invalid linked list or cycle.
Validation