mirror of
https://github.com/utmapp/libsoup.git
synced 2026-12-01 14:01:06 -10:00
17 lines
397 B
C
17 lines
397 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 ();
|
|
|
|
GDateTime *dt = soup_date_time_new_from_http_string ((const char*)data);
|
|
|
|
g_clear_pointer (&dt, g_date_time_unref);
|
|
|
|
return 0;
|
|
} |