You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
many instances of Parsing TLV Encodings with Containers, a call to ExitContainer() is omitted at the end of Reading that container, this is mostly observed for Top-Level containers at the moment.
The API contract of TLVReader::EnterContainer() clearly indicates that this is needed.
In addition, not calling TLVReader::ExitContainer() has a side-effect of ALLOWING the successful parsing of a received TLV (container) that is not properly terminated (one that did not call EndContainer()) which should not be allowed.
Example: (ExitContainerwas completely missed at the end ) :
many instances of Parsing TLV Encodings with Containers, a call to
ExitContainer()
is omitted at the end of Reading that container, this is mostly observed for Top-Level containers at the moment.The API contract of
TLVReader::EnterContainer()
clearly indicates that this is needed.In addition, not calling
TLVReader::ExitContainer()
has a side-effect of ALLOWING the successful parsing of a received TLV (container) that is not properly terminated (one that did not call EndContainer()) which should not be allowed.Example: (ExitContainerwas completely missed at the end ) :
connectedhomeip/src/protocols/secure_channel/CASESession.cpp
Lines 1415 to 1443 in dedef1f
This was observed in :
The text was updated successfully, but these errors were encountered: