Line | Count | Source |
1 | #include <stdint.h> | |
2 | #include <stdlib.h> | |
3 | #include <string.h> | |
4 | #include "http_parser.h" | |
5 | ||
6 | int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) | |
7 | 5.10k | { |
8 | 5.10k | struct http_parser_url u; |
9 | 5.10k | http_parser_url_init(&u); |
10 | 5.10k | http_parser_parse_url((char*)data, size, 0, &u); |
11 | 5.10k | http_parser_parse_url((char*)data, size, 1, &u); |
12 | ||
13 | 5.10k | return 0; |
14 | 5.10k | } |