comparison dbutil.c @ 1369:ddfcadca3c4c fuzz

fuzzer-pubkey
author Matt Johnston <matt@ucc.asn.au>
date Tue, 23 May 2017 22:43:34 +0800
parents f9f930e1a516
children d8215479a58a
comparison
equal deleted inserted replaced
1368:10df23099071 1369:ddfcadca3c4c
118 118
119 snprintf(fmtbuf, sizeof(fmtbuf), "Exited: %s", format); 119 snprintf(fmtbuf, sizeof(fmtbuf), "Exited: %s", format);
120 120
121 _dropbear_log(LOG_INFO, fmtbuf, param); 121 _dropbear_log(LOG_INFO, fmtbuf, param);
122 122
123 #ifdef DROPBEAR_FUZZ
124 // longjmp before cleaning up svr_opts
125 if (fuzz.fuzzing) {
126 longjmp(fuzz.jmp, 1);
127 }
128 #endif
129
123 exit(exitcode); 130 exit(exitcode);
124 } 131 }
125 132
126 void fail_assert(const char* expr, const char* file, int line) { 133 void fail_assert(const char* expr, const char* file, int line) {
127 dropbear_exit("Failed assertion (%s:%d): `%s'", file, line, expr); 134 dropbear_exit("Failed assertion (%s:%d): `%s'", file, line, expr);