Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Assertion may be false for untrusted data #4391

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

reneme
Copy link
Collaborator

@reneme reneme commented Oct 17, 2024

When unpack()-ing untrusted data (e.g. public keys or ciphertexts) it is possible that a debug assertion we made does not hold legitimately. The range check happens later in the deserialization steps.

Note that this only really becomes a problem when configuring --with-debug-asserts --unsafe-terminate-on-asserts (as we do for sanitizer builds)

This is a fix for: #4375 (comment).

When unpack()-ing untrusted data (e.g. public keys or ciphertexts) it
is possible that a debug assertion we made does not hold legitimately.
The range check happens later in the deserialiation steps.

Co-Authored-By: Fabian Albert <fabian.albert@rohde-schwarz.com>
@coveralls
Copy link

Coverage Status

coverage: 91.141% (+0.001%) from 91.14%
when pulling 59fb3a2 on Rohde-Schwarz:fix/pqcrystals_hairtrigger
into 2849ec7 on randombit:master.

@reneme reneme merged commit 3a62c9a into randombit:master Oct 17, 2024
38 checks passed
@reneme reneme deleted the fix/pqcrystals_hairtrigger branch October 17, 2024 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants