mirror of
https://github.com/clearml/dropbear
synced 2025-02-14 16:35:05 +00:00
Fix fuzzer build
This commit is contained in:
parent
6ca24af24a
commit
9f642e2bd4
@ -21,7 +21,7 @@ struct fdwrap {
|
|||||||
int closeout;
|
int closeout;
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct fdwrap wrap_fds[IOWRAP_MAXFD+1] = {0};
|
static struct fdwrap wrap_fds[IOWRAP_MAXFD+1] = {{UNUSED, 0, 0}};
|
||||||
static int wrapfd_maxfd = -1;
|
static int wrapfd_maxfd = -1;
|
||||||
static unsigned short rand_state[3];
|
static unsigned short rand_state[3];
|
||||||
static buffer *input_buf;
|
static buffer *input_buf;
|
||||||
@ -88,7 +88,6 @@ int wrapfd_close(int fd) {
|
|||||||
|
|
||||||
int wrapfd_read(int fd, void *out, size_t count) {
|
int wrapfd_read(int fd, void *out, size_t count) {
|
||||||
size_t maxread;
|
size_t maxread;
|
||||||
buffer *buf;
|
|
||||||
|
|
||||||
if (!fuzz.wrapfds) {
|
if (!fuzz.wrapfds) {
|
||||||
return read(fd, out, count);
|
return read(fd, out, count);
|
||||||
|
1
fuzz.h
1
fuzz.h
@ -20,6 +20,7 @@ void fuzz_cli_setup(void);
|
|||||||
int fuzz_set_input(const uint8_t *Data, size_t Size);
|
int fuzz_set_input(const uint8_t *Data, size_t Size);
|
||||||
|
|
||||||
int fuzz_run_preauth(const uint8_t *Data, size_t Size, int skip_kexmaths);
|
int fuzz_run_preauth(const uint8_t *Data, size_t Size, int skip_kexmaths);
|
||||||
|
int fuzz_run_client(const uint8_t *Data, size_t Size, int skip_kexmaths);
|
||||||
const void* fuzz_get_algo(const algo_type *algos, const char* name);
|
const void* fuzz_get_algo(const algo_type *algos, const char* name);
|
||||||
|
|
||||||
// fuzzer functions that intrude into general code
|
// fuzzer functions that intrude into general code
|
||||||
|
Loading…
Reference in New Issue
Block a user