Project

General

Profile

Actions

Optimization #6111

open

defrag: avoid passing null pointers to functions

Added by Juliana Fajardini Reichow 11 months ago.

Status:
New
Priority:
Normal
Assignee:
Target version:
Effort:
Difficulty:
Label:

Description

DecodeThreadVars, ThreadVars, and possibly some other variables are sometimes passed as null parameters
in our unit test functions.

This leads to the necessity of checking if they're not null pointers in several other places, such as
seen in https://github.com/OISF/suricata/blob/master/src/defrag.c#L1033, before using those variables, to prevent
warnings code analyzers.

This may be the case for other files, too.

Expected result: clean up calls of functions with null pointers, so we can clean up those checks for NULL pointers.

No data to display

Actions

Also available in: Atom PDF