Project

General

Profile

Actions

Bug #2834

closed

coverity: CID 327298: Null pointer dereferences (FORWARD_NULL)

Added by Victor Julien about 5 years ago. Updated about 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 #1

Updated by Shivani Bhardwaj about 5 years ago

  • Status changed from Assigned to Feedback
  • Target version set to TBD
Actions #2

Updated by Shivani Bhardwaj about 5 years ago

  • Status changed from Feedback to Closed
Actions #4

Updated by Shivani Bhardwaj about 5 years ago

  • Target version changed from TBD to 1.0.5
Actions

Also available in: Atom PDF