comparison fuzzer-pubkey.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
31 31
32 if (setjmp(fuzz.jmp) == 0) { 32 if (setjmp(fuzz.jmp) == 0) {
33 fuzz_checkpubkey_line(fuzz.input, 5, "/home/me/authorized_keys", 33 fuzz_checkpubkey_line(fuzz.input, 5, "/home/me/authorized_keys",
34 algoname, strlen(algoname), 34 algoname, strlen(algoname),
35 keyblob, strlen(keyblob)); 35 keyblob, strlen(keyblob));
36 m_malloc_free_epoch(1, 0);
36 } else { 37 } else {
37 m_malloc_free_epoch(1); 38 m_malloc_free_epoch(1, 1);
38 TRACE(("dropbear_exit longjmped")) 39 TRACE(("dropbear_exit longjmped"))
39 // dropbear_exit jumped here 40 // dropbear_exit jumped here
40 } 41 }
41 42
42 return 0; 43 return 0;