diff options
Diffstat (limited to 'src/lib/third_party')
-rw-r--r-- | src/lib/third_party/include/uthash.h | 4 | ||||
-rw-r--r-- | src/lib/third_party/src/fuzz/pl7m.c | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/third_party/include/uthash.h b/src/lib/third_party/include/uthash.h index 7cf305d41..1be580011 100644 --- a/src/lib/third_party/include/uthash.h +++ b/src/lib/third_party/include/uthash.h @@ -73,10 +73,10 @@ do { #endif #ifndef uthash_malloc -#define uthash_malloc(sz) malloc(sz) /* malloc fcn */ +#define uthash_malloc(sz) ndpi_malloc(sz) /* malloc fcn */ #endif #ifndef uthash_free -#define uthash_free(ptr,sz) free(ptr) /* free fcn */ +#define uthash_free(ptr,sz) ndpi_free(ptr) /* free fcn */ #endif #ifndef uthash_bzero #define uthash_bzero(a,n) memset(a,'\0',n) diff --git a/src/lib/third_party/src/fuzz/pl7m.c b/src/lib/third_party/src/fuzz/pl7m.c index 103c209c7..7959bf955 100644 --- a/src/lib/third_party/src/fuzz/pl7m.c +++ b/src/lib/third_party/src/fuzz/pl7m.c @@ -957,7 +957,7 @@ static size_t internal_FuzzerMutate(uint8_t *Data, size_t Size, size_t MaxSize) } #endif - +#ifndef PL7M_USE_SIMPLEST_MUTATOR static void update_do_l7(struct m_pkt *p) { struct udphdr *udp_h; @@ -1044,6 +1044,7 @@ static void update_do_l7(struct m_pkt *p) p->header.len = p->header.caplen; assert(p->header.caplen <= MAX_PKT_LENGTH); } +#endif #ifdef PL7M_USE_SIMPLEST_MUTATOR static void update_do_simplest(struct m_pkt *p) |