Skip to content

frodo-kem: return error instead of panicking on empty serde input#259

Merged
tarcieri merged 1 commit intoRustCrypto:masterfrom
rot256:fix/frodo-kem-serde-empty-panic
Feb 11, 2026
Merged

frodo-kem: return error instead of panicking on empty serde input#259
tarcieri merged 1 commit intoRustCrypto:masterfrom
rot256:fix/frodo-kem-serde-empty-panic

Conversation

@rot256
Copy link
Contributor

@rot256 rot256 commented Feb 11, 2026

Don't panic when attempting to de-serialize empty byte slices.

Indexing v[0] on empty input panics with index out of bounds.
Use split_first() to return a deserialization error instead.
@tarcieri tarcieri merged commit 2ea7024 into RustCrypto:master Feb 11, 2026
9 checks passed
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.

2 participants