Skip to content

fix(cri): iterate SET contents in iter_raw_values(), not SET TLV#238

Open
sumleo wants to merge 1 commit intorusticata:masterfrom
sumleo:fix/cri-iter-raw-values
Open

fix(cri): iterate SET contents in iter_raw_values(), not SET TLV#238
sumleo wants to merge 1 commit intorusticata:masterfrom
sumleo:fix/cri-iter-raw-values

Conversation

@sumleo
Copy link

@sumleo sumleo commented Feb 15, 2026

Summary

  • X509CriAttribute::iter_raw_values() was iterating over self.value which contains the full SET TLV (tag + length + content)
  • This caused the iterator to yield the entire SET as a single item rather than iterating over the individual AttributeValue entries inside it
  • Fixed by parsing past the SET header before creating the iterator, so it correctly yields each value in the SET

Test plan

  • Full test suite passes with cargo test --all-features

iter_raw_values() was iterating over self.value which contains the
full SET TLV (tag, length, and content). This caused the iterator
to yield the entire SET as a single item rather than iterating over
the individual AttributeValue entries inside it. Parse past the SET
header first so the iterator correctly yields each value.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant