comparison fuzzer-pubkey.c @ 1383:f03cfe9c76ac fuzz

Disable setnonblocking(), get_socket_address(), set_sock_priority() for fuzzing
author Matt Johnston <matt@ucc.asn.au>
date Fri, 26 May 2017 22:10:51 +0800
parents 7209a6e30932
children a90fdd2d2ed8
comparison
equal deleted inserted replaced
1382:4b864fd12b22 1383:f03cfe9c76ac
30 const char* keyblob = "blob"; // keep short 30 const char* keyblob = "blob"; // keep short
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 (unsigned char*)keyblob, strlen(keyblob));
36 m_malloc_free_epoch(1, 0); 36 m_malloc_free_epoch(1, 0);
37 } else { 37 } else {
38 m_malloc_free_epoch(1, 1); 38 m_malloc_free_epoch(1, 1);
39 TRACE(("dropbear_exit longjmped")) 39 TRACE(("dropbear_exit longjmped"))
40 // dropbear_exit jumped here 40 // dropbear_exit jumped here
41 } 41 }