Skip to content

Harden TSS.Rust unmarshaling and clean up clippy warnings - #2

Merged
Kasher merged 1 commit into
mainfrom
rust/marshaling-hardening-and-clippy
Aug 12, 2026
Merged

Harden TSS.Rust unmarshaling and clean up clippy warnings#2
Kasher merged 1 commit into
mainfrom
rust/marshaling-hardening-and-clippy

Conversation

@Kasher

@Kasher Kasher commented Aug 12, 2026

Copy link
Copy Markdown
Owner

Add bounds/underflow checking to TpmBuffer reads so truncated or malformed responses fail instead of silently returning zeros, fix ValidateSignature to use the signature's own hash algorithm, and move fromTpm/fromBytes to TpmStructure trait defaults (removing ~3.6k lines of generated code).

Add bounds/underflow checking to TpmBuffer reads so truncated or malformed responses fail instead of silently returning zeros, fix ValidateSignature to use the signature's own hash algorithm, and move fromTpm/fromBytes to TpmStructure trait defaults (removing ~3.6k lines of generated code).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@Kasher
Kasher merged commit 4f6d386 into main Aug 12, 2026
@Kasher
Kasher deleted the rust/marshaling-hardening-and-clippy branch August 12, 2026 12:38
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