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