Line | Count | Source |
1 | #include "fuzz.h" | |
2 | ||
3 | int | |
4 | LLVMFuzzerTestOneInput (const unsigned char *data, size_t size) | |
5 | 4.30k | { |
6 | // We only accept NUL terminated strings | |
7 | 4.30k | if (!size || data[size - 1] != '\0') |
8 | 26 | return 0; |
9 | ||
10 | 4.28k | fuzz_set_logging_func (); |
11 | ||
12 | 4.28k | SoupCookie *cookie = soup_cookie_parse ((char*)data, NULL); |
13 | ||
14 | 4.28k | g_clear_pointer (&cookie, soup_cookie_free); |
15 | ||
16 | 4.28k | return 0; |
17 | 4.30k | } |