Minor initialization fixes
This commit is contained in:
@@ -35,6 +35,9 @@
|
|||||||
#include "ndpi_includes.h"
|
#include "ndpi_includes.h"
|
||||||
#include "ndpi_encryption.h"
|
#include "ndpi_encryption.h"
|
||||||
|
|
||||||
|
#define malloc ndpi_malloc
|
||||||
|
#define free ndpi_free
|
||||||
|
|
||||||
#include "third_party/include/binaryfusefilter.h"
|
#include "third_party/include/binaryfusefilter.h"
|
||||||
|
|
||||||
/* ******************************************* */
|
/* ******************************************* */
|
||||||
|
|||||||
+1
-1
@@ -227,7 +227,7 @@ static inline bool binary_fuse8_allocate(uint32_t size,
|
|||||||
filter->ArrayLength =
|
filter->ArrayLength =
|
||||||
(filter->SegmentCount + arity - 1) * filter->SegmentLength;
|
(filter->SegmentCount + arity - 1) * filter->SegmentLength;
|
||||||
filter->SegmentCountLength = filter->SegmentCount * filter->SegmentLength;
|
filter->SegmentCountLength = filter->SegmentCount * filter->SegmentLength;
|
||||||
filter->Fingerprints = (uint8_t*)malloc(filter->ArrayLength);
|
filter->Fingerprints = (uint8_t*)calloc(1,filter->ArrayLength);
|
||||||
return filter->Fingerprints != NULL;
|
return filter->Fingerprints != NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user