don't longjmp for fuzzer-preauth (temporary to debug asan)

--HG--
branch : fuzz
This commit is contained in:
Matt Johnston 2017-05-30 22:50:52 +08:00
parent 4d07aa315b
commit ea0e23c172

View File

@ -40,6 +40,9 @@ int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
wrapfd_add(fakesock, fuzz.input, PLAIN); wrapfd_add(fakesock, fuzz.input, PLAIN);
m_malloc_set_epoch(1); m_malloc_set_epoch(1);
// temporarily disable setjmp to debug asan segv
svr_session(fakesock, fakesock);
#if 0
if (setjmp(fuzz.jmp) == 0) { if (setjmp(fuzz.jmp) == 0) {
svr_session(fakesock, fakesock); svr_session(fakesock, fakesock);
m_malloc_free_epoch(1, 0); m_malloc_free_epoch(1, 0);
@ -48,6 +51,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
TRACE(("dropbear_exit longjmped")) TRACE(("dropbear_exit longjmped"))
// dropbear_exit jumped here // dropbear_exit jumped here
} }
#endif
return 0; return 0;
} }