Skip to content

Commit

Permalink
TLV Reader error handling test should not read uninitialized data. (#…
Browse files Browse the repository at this point in the history
…9653)

We should just zero the data out, so it's known-bad.
  • Loading branch information
bzbarsky-apple authored and pull[bot] committed Oct 4, 2021
1 parent 75b0133 commit bc773c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/core/tests/TestCHIPTLV.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3021,7 +3021,7 @@ void TestCHIPTLVReaderDup(nlTestSuite * inSuite)
void TestCHIPTLVReaderErrorHandling(nlTestSuite * inSuite)
{
CHIP_ERROR err;
uint8_t buf[2048];
uint8_t buf[2048] = { 0 };
TLVReader reader;

reader.Init(buf);
Expand Down

0 comments on commit bc773c7

Please sign in to comment.