blob: 296b8d758308bf30992ec42bf9a21469fa50f64b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include "fuzz.h"
int
LLVMFuzzerTestOneInput (const unsigned char *data, size_t size)
{
// We only accept NUL terminated strings
if (!size || data[size - 1] != '\0')
return 0;
fuzz_set_logging_func ();
SoupCookie *cookie = soup_cookie_parse ((char*)data, NULL);
g_clear_pointer (&cookie, soup_cookie_free);
return 0;
}
|