-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TLVReader: Add test for Expect() and handle corner case better (#30188)
* TLVReader: Add test for Expect() and handle corner case better Expect(tag) implies that we should actually be positioned on an element. Also make a note about the position of the reader after Next(...) * Fix CertificationElementsDecoder::FindAndEnterArray This code was not handling CHIP_ERROR_WRONG_TLV_TYPE correctly. Split into separate Next() and Expect() calls to simplify the logic.
- Loading branch information
1 parent
f7aa46f
commit 1549682
Showing
4 changed files
with
69 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters