diff options
author | Matt Johnston <matt@ucc.asn.au> | 2017-05-21 10:54:11 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2017-05-21 10:54:11 +0800 |
commit | fb8fb7fed0bb822ccc11ed20229db51a3991a0e5 (patch) | |
tree | 55ee48f994e54c285846be8487ffe23876840d9b /fuzzer-preauth.c | |
parent | 1abd239b9ded3386fac8d553aa4652da88a52d58 (diff) |
add dbmalloc epoch cleanup
--HG--
branch : fuzz
Diffstat (limited to 'fuzzer-preauth.c')
-rw-r--r-- | fuzzer-preauth.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fuzzer-preauth.c b/fuzzer-preauth.c index 9ca7b84..7f0e136 100644 --- a/fuzzer-preauth.c +++ b/fuzzer-preauth.c @@ -23,9 +23,11 @@ int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { int fakesock = 1; wrapfd_add(fakesock, fuzz.input, PLAIN); + m_malloc_set_epoch(1); if (setjmp(fuzz.jmp) == 0) { svr_session(fakesock, fakesock); } else { + m_malloc_free_epoch(1); TRACE(("dropbear_exit longjmped")) // dropbear_exit jumped here } |