mirror of
https://github.com/utmapp/libsoup.git
synced 2026-12-01 10:23:23 -10:00
17 lines
355 B
C
17 lines
355 B
C
#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;
|
|
} |