|
@@ -1,3 +1,4 @@
|
|
|
+#include "../config.h"
|
|
|
#include "../parser/sdp/sdp.h"
|
|
|
#include "../parser/parse_uri.c"
|
|
|
#include "../parser/parse_hname2.h"
|
|
@@ -23,6 +24,11 @@ LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
|
|
orig_inv.buf = (char*)data;
|
|
|
orig_inv.len = size;
|
|
|
|
|
|
+ if(size >= 4*BUF_SIZE) {
|
|
|
+ /* test with larger message than core accepts, but not indefinitely large */
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
+
|
|
|
if (parse_msg(orig_inv.buf, orig_inv.len, &orig_inv) < 0) {
|
|
|
goto cleanup;
|
|
|
}
|