Skip to content

Commit 5859c4e

Browse files
generatedunixname537391475639613facebook-github-bot
generatedunixname537391475639613
authored andcommitted
Fix modernize-avoid-c-arrays in fbcode/proxygen/lib/http/codec/test
Reviewed By: kvtsoy Differential Revision: D73505435 fbshipit-source-id: cac7bb40de74903093aa8e6c08be6ab956ee9b08
1 parent e1dc78a commit 5859c4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

proxygen/lib/http/codec/test/HQCodecTest.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -415,8 +415,8 @@ TEST_F(HQCodecTest, qpackError) {
415415
}
416416

417417
TEST_F(HQCodecTest, qpackErrorShort) {
418-
uint8_t bad[] = {0x00}; // LR, no delta base
419-
hq::writeHeaders(queue_, folly::IOBuf::wrapBuffer(bad, 1));
418+
std::array<uint8_t, 1> bad = {0x00}; // LR, no delta base
419+
hq::writeHeaders(queue_, folly::IOBuf::wrapBuffer(bad.data(), bad.size()));
420420
downstreamCodec_->onIngress(*queue_.front());
421421
EXPECT_EQ(callbacks_.lastParseError->getHttp3ErrorCode(),
422422
HTTP3::ErrorCode::HTTP_QPACK_DECOMPRESSION_FAILED);

0 commit comments

Comments
 (0)