Coverage Report

Created: 2025-07-23 06:03

/src/libsoup/fuzzing/fuzz_header_parsing.c
Line
Count
Source
1
#include "fuzz.h"
2
3
int
4
LLVMFuzzerTestOneInput (const unsigned char *data, size_t size)
5
428
{
6
428
        GHashTable *elements;
7
8
        // We only accept NUL terminated strings
9
428
        if (!size || data[size - 1] != '\0')
10
11
                return 0;
11
12
417
        fuzz_set_logging_func ();
13
14
417
        elements = soup_header_parse_param_list((char*)data);
15
16
417
        g_hash_table_unref(elements);
17
18
417
        return 0;
19
428
}