Repository navigation
Skip truncated ASC frames without losing later messages - #2161
Conversation
AI Review: Skip truncated ASC frames without losing later messagesThe fix is correct and minimal: payloads shorter than their declared length are rejected, and malformed frame records are skipped with a warning naming the record. This is the consistent handling #2160 asks for. CAN FD remote records stay valid, since Vector "CAN, Log & Trigger ASC Logging Format", v1.4.16, §3.3 sets their Requested changes
Verdict: request changes |
60f2b35 to
2bf6fc7
Compare
|
Rebased onto main and moved the regressions into |
AI Review: Skip truncated ASC frames without losing later messagesThe fix is correct and minimal. Records whose payload is shorter than their declared length (classic Correction to the earlier review
Verdict: merge |
Fixes #2160. Reject payloads shorter than their declared length and skip malformed ASC frame records with a warning containing the offending record. Valid later frames remain readable, and relative timestamp accumulation still includes the skipped record.
Rebased onto main (d81b980). Six truncated-record regressions in
TestAscFileFormatfail without the fix and pass with it, including the short CANoe 7.x layout. A separate CAN FD remote-frame control verifies that DataLength, not DLC, determines the required payload size.Python 3.12/Linux: recording-format suite 150 passed, six skipped; full software suite 690 passed, 126 skipped. Black, Ruff and Pylint pass for the changed code. Type checking is blocked by a syntax error in the optional asammdf dependency. Physical CAN hardware was not tested; this fix operates on recording files.