Skip to content

Conversation

@victorjulien
Copy link
Member

jasonish and others added 9 commits April 15, 2022 10:26
Fix parsing of content like "|aa b cc|" which was parsed as "|aa bc|"
without error or warning. This will now fail out, requiring all hex
values to be 2 chars.

Ticket OISF#5201

(cherry picked from commit 8d1e4a1)
So, fuzz_applayerparserparse_tftp will fuzz tftp

(cherry picked from commit c9d664b)
The bits were being parsed in the order they're displayed in Wireshark,
rather than the order they were being seen on the wire, resulting in
direction and async being 0 more often than they should be.

Instead of bits, take the 4 bytes as an le_u32 and just use bit masks to
extract what we need into a struct, I think its easier to reason about
this way when comparing to the Microsoft documentation.

(cherry picked from commit 7b65948)
Adds `.is_request()` and `.is_reply()` to check if a SMB record flags
say the message is a request or a reply.

(cherry picked from commit 09e2d3b)
If an SMB record is seen in the wrong direction, set an event on the PDU
frame and don't process the record in the state.

No error is returned, so the next record will be processed.

(cherry picked from commit 2341f47)
Pin checkout action plus other fixups from master to deal with changes
to the action.
This is a minimal backport of 5618273
to address ticket 5018.

Uses the "complete" version of take instead of the macro which is thre
streaming variant.

Ticket OISF#5018
@victorjulien victorjulien requested review from a team and jasonish as code owners April 19, 2022 20:25
@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline 7000

@victorjulien victorjulien merged commit 084b16a into OISF:master-6.0.x Apr 20, 2022
@victorjulien victorjulien deleted the next/60x/20220419/v4 branch April 21, 2022 21:05
jtstrs added a commit to jtstrs/suricata that referenced this pull request Sep 30, 2024
Fix potential dereference of nullptr in case
of unsuccessful allocation of memory for
list node

Bug: OISF#7270
victorjulien pushed a commit to victorjulien/suricata that referenced this pull request Oct 2, 2024
Fix potential dereference of nullptr in case
of unsuccessful allocation of memory for
list node

Bug: OISF#7270
jufajardini pushed a commit to jufajardini/suricata that referenced this pull request Oct 15, 2024
Fix potential dereference of nullptr in case
of unsuccessful allocation of memory for
list node

Bug: OISF#7270
(cherry picked from commit c72404e)
victorjulien pushed a commit to victorjulien/suricata that referenced this pull request Oct 17, 2024
Fix potential dereference of nullptr in case
of unsuccessful allocation of memory for
list node

Bug: OISF#7270
(cherry picked from commit c72404e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

5 participants