Mercurial > dropbear
annotate dbmalloc.h @ 1386:f0990c284663 fuzz
fuzzer-preauth don't call getpwnam(), bring back longjmp
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 02 Jun 2017 00:03:51 +0800 |
parents | 7209a6e30932 |
children | c42e8ff42bd1 |
rev | line source |
---|---|
1361 | 1 #ifndef DBMALLOC_H_ |
2 #define DBMALLOC_H_ | |
3 | |
4 #include "includes.h" | |
5 | |
6 void * m_malloc(size_t size); | |
7 void * m_calloc(size_t nmemb, size_t size); | |
8 void * m_strdup(const char * str); | |
9 void * m_realloc(void* ptr, size_t size); | |
10 void m_free_direct(void* ptr); | |
11 #define m_free(X) do {m_free_direct(X); (X) = NULL;} while (0) | |
12 | |
13 void m_malloc_set_epoch(unsigned int epoch); | |
1378 | 14 void m_malloc_free_epoch(unsigned int epoch, int dofree); |
1361 | 15 |
16 #endif /* DBMALLOC_H_ */ |