Skip to content

Commit dc2a7d8

Browse files
author
me
committed
more cov
1 parent ac5bd7b commit dc2a7d8

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

examples/fuzz/request_parser.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,8 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
1212
buf.clear();
1313
ec = {};
1414
http::serialize_header(req, buf, ec);
15+
req.clear();
16+
bool is_keep_alive = req.keep_alive();
17+
bool is_websocket_req = req.is_websocket_req();
1518
return 0;
1619
}

examples/fuzz/response_parser.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,8 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
1212
buf.clear();
1313
ec = {};
1414
http::serialize_header(resp, buf, ec);
15+
resp.clear();
16+
resp.keep_alive(true);
17+
bool is_websocket = resp.is_websocket_response();
1518
return 0;
1619
}

0 commit comments

Comments
 (0)