Skip to content

Commit b3ff507

Browse files
author
pfeatherstone
committed
more cov
1 parent 304b5d0 commit b3ff507

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

examples/fuzz/request_parser.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
1212
bool is_keep_alive = req.keep_alive();
1313
bool is_websocket_req = req.is_websocket_req();
1414
std::string ec_msg = ec ? ec.message() : "";
15+
const auto& ec_cat = ec.category();
1516
buf.clear();
1617
ec = {};
1718
http::serialize_header(req, buf, ec);

examples/fuzz/response_parser.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
1111
parser.parse(resp, buf, ec);
1212
buf.clear();
1313
std::string ec_msg = ec ? ec.message() : "";
14+
const auto& ec_cat = ec.category();
1415
ec = {};
1516
http::serialize_header(resp, buf, ec);
1617
resp.keep_alive(true);

examples/fuzz/websocket_parser.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
1212
parser.parse(req, buf, ec);
1313
bool is_websocket_req = req.is_websocket_req();
1414
std::string ec_msg = ec ? ec.message() : "";
15+
const auto& ec_cat = ec.category();
1516

1617
std::vector<char> msg;
1718
http::dynamic_buffer view(msg);

0 commit comments

Comments
 (0)