Project

General

Profile

Actions

Bug #2676

closed

coverity warning: forward null

Added by Victor Julien about 6 years ago. Updated about 6 years ago.

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

Description

Error: FORWARD_NULL (CWE-476):
suricata-4.1.0/suricata-update/suricata/update/rule.py:295: assign_null: Assigning: "val" = "None".
suricata-4.1.0/suricata-update/suricata/update/rule.py:313: property_access: Accessing a property of null-like value "val".
#  311|               rule.references.append(val)
#  312|           elif name == "msg":
#  313|->             if val.startswith('"') and val.endswith('"'):
#  314|                   val = val[1:-1]
#  315|               rule[name] = val
Actions

Also available in: Atom PDF