Mercurial > dropbear
comparison fuzzer-preauth.c @ 1378:7209a6e30932 fuzz
linked list dbmalloc now
add non-free m_malloc_free_epoch() argument for leak detection
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 26 May 2017 00:19:39 +0800 |
parents | d4cc85e6c569 |
children | f03cfe9c76ac |
comparison
equal
deleted
inserted
replaced
1377:d4cc85e6c569 | 1378:7209a6e30932 |
---|---|
40 wrapfd_add(fakesock, fuzz.input, PLAIN); | 40 wrapfd_add(fakesock, fuzz.input, PLAIN); |
41 | 41 |
42 m_malloc_set_epoch(1); | 42 m_malloc_set_epoch(1); |
43 if (setjmp(fuzz.jmp) == 0) { | 43 if (setjmp(fuzz.jmp) == 0) { |
44 svr_session(fakesock, fakesock); | 44 svr_session(fakesock, fakesock); |
45 m_malloc_free_epoch(1, 0); | |
45 } else { | 46 } else { |
46 m_malloc_free_epoch(1); | 47 m_malloc_free_epoch(1, 1); |
47 TRACE(("dropbear_exit longjmped")) | 48 TRACE(("dropbear_exit longjmped")) |
48 // dropbear_exit jumped here | 49 // dropbear_exit jumped here |
49 } | 50 } |
50 | 51 |
51 return 0; | 52 return 0; |