Skip to content

Commit 8ad913a

Browse files
author
pfeatherstone
committed
trying to get more cov
1 parent 44203c2 commit 8ad913a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/fuzz/request_parser.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
99
std::error_code ec{};
1010
http::parser<http::request> parser;
1111
parser.parse(req, buf, ec);
12+
bool is_keep_alive = req.keep_alive();
13+
bool is_websocket_req = req.is_websocket_req();
1214
buf.clear();
1315
ec = {};
1416
http::serialize_header(req, buf, ec);
1517
req.clear();
16-
bool is_keep_alive = req.keep_alive();
17-
bool is_websocket_req = req.is_websocket_req();
1818
return 0;
1919
}

examples/fuzz/response_parser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +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();
1615
resp.keep_alive(true);
1716
bool is_websocket = resp.is_websocket_response();
17+
resp.clear();
1818
return 0;
1919
}

0 commit comments

Comments
 (0)