Conversation
Treat bad link-header CRCs and impossible link lengths as recoverable errors and attempt to resynchronize. Also consume a response frame whose trusted length is too short for the required response headers, so later responses remain available. Ticket: 8980
Create a TX to carry the event if needed. Ticket: 8979
|
AI-generated review posted automatically by Suricata ai-review. Verdict: request changes
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #16168 +/- ##
==========================================
+ Coverage 83.11% 83.13% +0.02%
==========================================
Files 1004 1004
Lines 277558 277577 +19
==========================================
+ Hits 230692 230767 +75
+ Misses 46866 46810 -56
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
| } | ||
|
|
||
| /** | ||
| * \brief Set a directional event, allocating a transaction if necessary. |
There was a problem hiding this comment.
Event is not directional
| /** | ||
| * \brief Set a directional event, allocating a transaction if necessary. | ||
| */ | ||
| static void DNP3SetEventDirection(DNP3State *dnp3, bool request, uint8_t event) |
There was a problem hiding this comment.
Why is this named DNP3SetEventDirection ?
Direction looks like a leftover
| STREAM_TOCLIENT, packet_bytes, sizeof(packet_bytes)); | ||
|
|
||
| FAIL_IF(r == 0); | ||
| FAIL_IF(r != 0); |
There was a problem hiding this comment.
You could have moved this to a SV test ;-)
There was a problem hiding this comment.
Covered by tests/dnp3/issue-8980-dnp3-framing-recovery, don't really see the need to remove a UT. Though with all that setup its a bit more than a UT.
|
Information: QA ran without warnings. Pipeline = 33705 |
|
Replaced by #16170 |
Ticket: https://redmine.openinfosecfoundation.org/issues/8979
Ticket: https://redmine.openinfosecfoundation.org/issues/8980
SV_BRANCH=OISF/suricata-verify#3347