linked list dbmalloc now

add non-free m_malloc_free_epoch() argument for leak detection

--HG--
branch : fuzz
This commit is contained in:
Matt Johnston
2017-05-26 00:19:39 +08:00
parent b8fa712847
commit 65baa71b58
4 changed files with 46 additions and 30 deletions

View File

@@ -42,8 +42,9 @@ int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
m_malloc_set_epoch(1);
if (setjmp(fuzz.jmp) == 0) {
svr_session(fakesock, fakesock);
m_malloc_free_epoch(1, 0);
} else {
m_malloc_free_epoch(1);
m_malloc_free_epoch(1, 1);
TRACE(("dropbear_exit longjmped"))
// dropbear_exit jumped here
}