mirror of
https://github.com/clearml/dropbear
synced 2025-04-23 07:34:52 +00:00
don't longjmp for fuzzer-preauth (temporary to debug asan)
--HG-- branch : fuzz
This commit is contained in:
parent
4d07aa315b
commit
ea0e23c172
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user