Project

General

Profile

Actions

Bug #6303

closed

conf: an empty child node is not checked for NULL

Added by Shivani Bhardwaj 8 months ago. Updated 8 months ago.

Status:
Closed
Priority:
Normal
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

Since 7.0.x, we have a change in the behavior of how children nodes in a node tree are parsed.
Earlier, if a child node was empty, it was set to an empty string and all the retriever fns like ConfGetChildValue would check if the strlen of such a node item was 0 and take action accordingly.
However, since 7.0.x, if a child node was empty, it was set to NULL and the retriever fns would segfault on calls like strlen.
This was found while doing backports for https://redmine.openinfosecfoundation.org/issues/6228.


Related issues 2 (0 open2 closed)

Related to Suricata - Bug #6249: config: check and fix any empty config checksRejectedShivani BhardwajActions
Related to Suricata - Bug #6302: af-packet: fails to handle null bpf-filterRejectedJason IshActions
Actions #1

Updated by Shivani Bhardwaj 8 months ago

  • Related to Bug #6249: config: check and fix any empty config checks added
Actions #2

Updated by Shivani Bhardwaj 8 months ago

  • Related to Bug #6302: af-packet: fails to handle null bpf-filter added
Actions #3

Updated by Shivani Bhardwaj 8 months ago

  • Status changed from Assigned to In Review
Actions #4

Updated by Jason Ish 8 months ago

  • Status changed from In Review to Closed
Actions

Also available in: Atom PDF