Skip to content

Commit

Permalink
make flags const
Browse files Browse the repository at this point in the history
Signed-off-by: Asra Ali <asraa@google.com>
  • Loading branch information
asraa committed Dec 21, 2020
1 parent f30ec09 commit fd7af21
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/common/http/http2/hpack_fuzz_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ std::vector<nghttp2_nv> createNameValueArray(const test::fuzz::Headers& input) {
int i = 0;
for (const auto& header : input.headers()) {
// TODO(asraa): Consider adding flags in fuzzed input.
const uint8_t flags = 0;
nva[i++] = {const_cast<uint8_t*>(reinterpret_cast<const uint8_t*>(header.key().data())),
const_cast<uint8_t*>(reinterpret_cast<const uint8_t*>(header.value().data())),
header.key().size(), header.value().size(), /*flags = */ 0};
header.key().size(), header.value().size(), flags};
}

return nva;
Expand Down

0 comments on commit fd7af21

Please sign in to comment.