Skip to content

fix: support sparse PCR banks#63

Draft
leopoldjoy wants to merge 1 commit into
mainfrom
audit/support-sparse-pcr-bank
Draft

fix: support sparse PCR banks#63
leopoldjoy wants to merge 1 commit into
mainfrom
audit/support-sparse-pcr-bank

Conversation

@leopoldjoy

Copy link
Copy Markdown
Contributor

Summary

  • validate PCR indices against the fixed 0..31 bank rather than the number of entries
  • return a 32-slot PCR bank with explicit CBOR-null sentinels for omitted indices
  • add sparse-map, duplicate, out-of-range, and consumer documentation coverage

Audit finding

Addresses external finding #1.

Tests

  • forge fmt --check
  • forge test (208 passed, 1 skipped)
  • forge build --sizes
  • NitroValidator runtime: 17,460 bytes

Co-authored-by: OpenCode <opencode-noreply@coinbase.com>
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