Coverage Report

Created: 2025-07-18 06:25

/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
424
{
6
424
        GHashTable *elements;
7
8
        // We only accept NUL terminated strings
9
424
        if (!size || data[size - 1] != '\0')
10
12
                return 0;
11
12
412
        fuzz_set_logging_func ();
13
14
412
        elements = soup_header_parse_param_list((char*)data);
15
16
412
        g_hash_table_unref(elements);
17
18
412
        return 0;
19
424
}