Coverage Report

Created: 2025-07-23 06:03

/src/libsoup/fuzzing/fuzz_date_time.c
Line
Count
Source
1
#include "fuzz.h"
2
3
int
4
LLVMFuzzerTestOneInput (const unsigned char *data, size_t size)
5
4.90k
{
6
        // We only accept NUL terminated strings
7
4.90k
        if (!size || data[size - 1] != '\0')
8
20
                return 0;
9
10
4.88k
        fuzz_set_logging_func ();
11
12
4.88k
        GDateTime *dt = soup_date_time_new_from_http_string ((const char*)data);
13
14
4.88k
        g_clear_pointer (&dt, g_date_time_unref);
15
16
4.88k
        return 0;
17
4.90k
}