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: limit iterator length when fetching block hashes #374

Merged
merged 1 commit into from
Jul 10, 2024
Merged

Conversation

Nashtare
Copy link
Collaborator

@Nashtare Nashtare commented Jul 9, 2024

Something silly that we missed in #370, is that the iterator length isn't bounded by the fixed, constant size of the target array we're filling up. Instead, we iterate over the whole vector which, following latest fix, is 1 item too long for half the blocks (those with even offset), causing an underflow when indexing.

@Nashtare Nashtare added the bug Something isn't working label Jul 9, 2024
@Nashtare Nashtare requested a review from atanmarko July 9, 2024 22:45
@Nashtare Nashtare requested a review from muursh as a code owner July 9, 2024 22:45
@github-actions github-actions bot added the crate: zero_bin Anything related to the zero-bin subcrates. label Jul 9, 2024
@Nashtare Nashtare merged commit 8d5f15b into develop Jul 10, 2024
14 checks passed
@Nashtare Nashtare deleted the rpc/fix branch July 10, 2024 09:25
@Nashtare Nashtare added this to the Type 1 - Q3 2024 milestone Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working crate: zero_bin Anything related to the zero-bin subcrates.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants