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
The only reason this worked in any way is that TLV::IsProfileTag()
tests true for small integers, so the VerifyOrReturnError was a no-op,
even though we were testing IsContextTag() and IsProfileTag() on the
tag _number_, not the tag.
Per spec, only context tags are allowed here, so just allow those.
Fixesproject-chip#10188
The only reason this worked in any way is that TLV::IsProfileTag()
tests true for small integers, so the VerifyOrReturnError was a no-op,
even though we were testing IsContextTag() and IsProfileTag() on the
tag _number_, not the tag.
Per spec, only context tags are allowed here, so just allow those.
Fixes#10188
Problem
Code looks like this:
which is nonsense: the tag type tests need to happen on the tag, not the tag number.
But also, why are we allowing profile tags here anyway? The spec doesn't.
Proposed Solution
Align with spec, add tests.
@shana-apple
The text was updated successfully, but these errors were encountered: