Project

General

Profile

Actions

Bug #3814

closed
JL JL

Coverity scan issue -- null pointer deref in ftp logger

Bug #3814: Coverity scan issue -- null pointer deref in ftp logger

Added by Jeff Lucovsky over 5 years ago. Updated over 5 years ago.

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

Description

** CID 1465225:  Null pointer dereferences  (FORWARD_NULL)

________________________________________________________________________________________________________
*** CID 1465225:  Null pointer dereferences  (FORWARD_NULL)
/src/output-json-alert.c: 567 in AlertJson()
561                         break;
562                 }
563             }
564     565             /* including fileinfo data is configured by the
metadata setting */
566             if (json_output_ctx->flags & LOG_JSON_RULE_METADATA) {
>>>     CID 1465225:  Null pointer dereferences  (FORWARD_NULL)
>>>     Passing null pointer "p->flow" to "AppLayerParserGetFiles", which dereferences it.
567                 FileContainer *ffc = AppLayerParserGetFiles(p->flow,
568                         p->flowflags & FLOW_PKT_TOSERVER ?
STREAM_TOSERVER:STREAM_TOCLIENT);
569                 if (ffc != NULL) {
570                     File *file = ffc->head;
571                     bool isopen = false;
572                     while (file) {

** CID 1465224:  Control flow issues  (DEADCODE)
/src/output-json-ftp.c: 151 in EveFTPLogCommand()

JL Updated by Jeff Lucovsky over 5 years ago Actions #1

  • Subject changed from Coverity scan issue -- ftp logger to Coverity scan issue -- null pointer deref in ftp logger

VJ Updated by Victor Julien over 5 years ago Actions #2

  • Target version set to 6.0.0beta1

JL Updated by Jeff Lucovsky over 5 years ago Actions #3

  • Status changed from Assigned to In Review

JL Updated by Jeff Lucovsky over 5 years ago Actions #4

  • Status changed from In Review to Closed
Actions

Also available in: PDF Atom