You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kamailio/misc/fuzz/fuzz_uri.c

15 lines
330 B

#include "../config.h"
#include "../parser/parse_uri.c"
int
LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
struct sip_uri uri;
if(size >= BUF_SIZE) {
/* test with larger message than core accepts, but not indefinitely large */
return 0;
}
parse_uri(data, size, &uri);
return 0;
}