Project

General

Profile

Actions

Bug #3818

closed

Coverity scan issue -- null pointer deref in detect engine

Added by Jeff Lucovsky over 3 years ago. Updated over 3 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

Also available in: Atom PDF