comparison fuzzer-preauth.c @ 1361:f9f930e1a516 fuzz

add dbmalloc epoch cleanup
author Matt Johnston <matt@ucc.asn.au>
date Sun, 21 May 2017 10:54:11 +0800
parents 6b89eb92f872
children 17104db7928c
comparison
equal deleted inserted replaced
1360:16f45f2df38f 1361:f9f930e1a516
21 } 21 }
22 22
23 int fakesock = 1; 23 int fakesock = 1;
24 wrapfd_add(fakesock, fuzz.input, PLAIN); 24 wrapfd_add(fakesock, fuzz.input, PLAIN);
25 25
26 m_malloc_set_epoch(1);
26 if (setjmp(fuzz.jmp) == 0) { 27 if (setjmp(fuzz.jmp) == 0) {
27 svr_session(fakesock, fakesock); 28 svr_session(fakesock, fakesock);
28 } else { 29 } else {
30 m_malloc_free_epoch(1);
29 TRACE(("dropbear_exit longjmped")) 31 TRACE(("dropbear_exit longjmped"))
30 // dropbear_exit jumped here 32 // dropbear_exit jumped here
31 } 33 }
32 34
33 return 0; 35 return 0;