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

patches range check in get_signed_message_range #27822

Merged

Conversation

behzadnouri
Copy link
Contributor

Problem

Inequality is reversed.

For current shreds range.end == shred.len(), so this is a no-op.
But for upcoming Merkle shreds this will cause shreds to incorrectly fail sig-verify.

Summary of Changes

Corrected the inequality direction.

@behzadnouri behzadnouri merged commit b183e00 into solana-labs:master Sep 16, 2022
@behzadnouri behzadnouri deleted the patch-get-signed-msg-range branch September 16, 2022 00:08
mergify bot pushed a commit that referenced this pull request Sep 16, 2022
(cherry picked from commit b183e00)

# Conflicts:
#	ledger/src/shred.rs
behzadnouri added a commit that referenced this pull request Sep 16, 2022
…7831)

* patches range check in shred::layout::get_signed_message_range (#27822)

(cherry picked from commit b183e00)

# Conflicts:
#	ledger/src/shred.rs

* removes mergify merge conflicts

Co-authored-by: behzad nouri <[email protected]>
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