fuzz: add more fuzz tests

From: Hiromasa Ito <v3hertz@gmail.com>

See bugs #57374-#57380 found by this new test mode.
This commit is contained in:
Simon Goldschmidt
2020-02-19 21:12:37 +01:00
parent a07e0a82c9
commit d05be56a50
8 changed files with 464 additions and 35 deletions

View File

@@ -46,10 +46,14 @@ enum lwip_fuzz_type {
};
/* bitmask of what to test: */
#define LWIP_FUZZ_TCP 1
#define LWIP_FUZZ_UDP 2
#define LWIP_FUZZ_DEFAULT 0x01
#define LWIP_FUZZ_STATICARP 0x02
#define LWIP_FUZZ_TCP_SERVER 0x04
#define LWIP_FUZZ_TCP_CLIENT 0x08
#define LWIP_FUZZ_UDP_SERVER 0x10
#define LWIP_FUZZ_UDP_CLIENT 0x20
int lwip_fuzztest(int argc, char** argv, enum lwip_fuzz_type type);
int lwip_fuzztest(int argc, char** argv, enum lwip_fuzz_type type, u32_t test_apps);
#ifdef __cplusplus
}