Project

General

Profile

Actions

Bug #2834

closed

coverity: CID 327298: Null pointer dereferences (FORWARD_NULL)

Added by Victor Julien almost 6 years ago. Updated over 5 years ago.

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

Description

New defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)

** CID 327298:  Null pointer dereferences  (FORWARD_NULL)
/suricata/update/rule.py: 271 in parse()

________________________________________________________________________________________________________
*** CID 327298:  Null pointer dereferences  (FORWARD_NULL)
/suricata/update/rule.py: 271 in parse()
265             elif name == "metadata":
266                 if not name in rule:
267                     rule[name] = []
268                 rule[name] += [v.strip() for v in val.split(",")]
269             elif name == "flowbits":
270                 rule.flowbits.append(val)
>>>     CID 327298:  Null pointer dereferences  (FORWARD_NULL)
>>>     Accessing a property of null-like value "val".
271                 if val.find("noalert") > -1:
272                     rule["noalert"] = True
273             elif name == "reference":
274                 rule.references.append(val)
275             elif name == "msg":
276                 if val and val.startswith('"') and val.endswith('"'):
Actions

Also available in: Atom PDF