Actions
Bug #4952
closedscan-build: Access to field 'de_state' results in a dereference of a null pointer
Affected Versions:
Effort:
Difficulty:
Label:
Description
CC detect.o detect.c:1238:38: warning: Access to field 'de_state' results in a dereference of a null pointer (loaded from variable 'txd') [core.NullDereference] DetectEngineState *tx_de_state = txd->de_state; ^~~~~~~~~~~~~ 1 warning generated.
txd
is almost everywhere a part of the transaction structure, where it can't be NULL if we have a tx. However in the case of HTTP we can have a tx w/o a HTPTxUserData
object which means it is possible to have a NULL txd
in some edge cases.
Now a HTP tx w/o a HTPTxUserData
is useless from the Suricata perspective, so I wonder if we can somehow "hide" a tx like that from Suricata.
Updated by Victor Julien almost 3 years ago
So I have a branch that makes the AppLayerTxData
non-optional, but need a solution for the HTPTxUserData
case still.
Updated by Victor Julien about 2 years ago
- Target version changed from 7.0.0-beta1 to 7.0.0-rc1
Updated by Victor Julien about 2 years ago
- Status changed from New to Assigned
- Assignee changed from OISF Dev to Victor Julien
Updated by Victor Julien almost 2 years ago
- Target version changed from 7.0.0-rc1 to 7.0.0-rc2
Updated by Victor Julien over 1 year ago
- Status changed from Assigned to Resolved
Updated by Victor Julien over 1 year ago
- Related to Bug #5739: htp: handle alloc failure for user data added
Updated by Victor Julien over 1 year ago
- Status changed from Resolved to Closed
Actions