mirror of
https://github.com/nodejs/http-parser.git
synced 2025-10-17 16:22:32 +08:00

PR-URL: https://github.com/nodejs/http-parser/pull/508 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
15 lines
322 B
C
15 lines
322 B
C
#include <stdint.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include "http_parser.h"
|
|
|
|
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
|
|
{
|
|
struct http_parser_url u;
|
|
http_parser_url_init(&u);
|
|
http_parser_parse_url((char*)data, size, 0, &u);
|
|
http_parser_parse_url((char*)data, size, 1, &u);
|
|
|
|
return 0;
|
|
}
|