Coverage Report

Created: 2025-07-04 06:06

/src/http-parser/fuzzers/fuzz_url.c
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.33k
{
8
5.33k
  struct http_parser_url u;
9
5.33k
  http_parser_url_init(&u);
10
5.33k
  http_parser_parse_url((char*)data, size, 0, &u);
11
5.33k
  http_parser_parse_url((char*)data, size, 1, &u);
12
13
5.33k
  return 0;
14
5.33k
}