Project

General

Profile

Actions

Bug #3818

closed

Coverity scan issue -- null pointer deref in detect engine

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

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

Description

** CID 1465221:  Null pointer dereferences  (REVERSE_INULL)
/src/detect-engine.c: 782 in DetectBufferTypeFreeFunc()

________________________________________________________________________________________________________
*** CID 1465221:  Null pointer dereferences  (REVERSE_INULL)
/src/detect-engine.c: 782 in DetectBufferTypeFreeFunc()
776                            "%s allocates transform option memory but
has no free routine",
777
sigmatch_table[map->transforms.transforms[i].transform].name);
778                 continue;
779             }
780
sigmatch_table[map->transforms.transforms[i].transform].Free(NULL,
map->transforms.transforms[i].options);
781         }
>>>     CID 1465221:  Null pointer dereferences  (REVERSE_INULL)
>>>     Null-checking "map" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
782         if (map != NULL) {
783             SCFree(map);
784         }
785     }
786     787     static int DetectBufferTypeInit(void)
Actions #1

Updated by Victor Julien over 4 years ago

  • Target version set to 6.0.0beta1
Actions #2

Updated by Jeff Lucovsky over 4 years ago

  • Status changed from Assigned to In Review
Actions #3

Updated by Jeff Lucovsky over 4 years ago

  • Status changed from In Review to Closed
Actions

Also available in: Atom PDF