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

rpc: fix possible panics in optimize_filters #29146

Merged
merged 1 commit into from
Dec 15, 2022

Conversation

fanatid
Copy link
Contributor

@fanatid fanatid commented Dec 8, 2022

Problem

Possible panic in RPC thread in optimize_filters.

Summary of Changes

optimize_filters was introduced in #20185 (by me 🤣) but uses .unwrap() (my bad!). instead it would be better to ignore invalid data. It's very strange that nobody reported possible panics.

@mergify mergify bot added the community Community contribution label Dec 8, 2022
@mergify mergify bot requested a review from a team December 8, 2022 00:36
Copy link
Contributor

@CriesofCarrots CriesofCarrots left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@CriesofCarrots CriesofCarrots added CI Pull Request is ready to enter CI v1.14 labels Dec 15, 2022
@solana-grimes solana-grimes removed CI Pull Request is ready to enter CI labels Dec 15, 2022
@CriesofCarrots CriesofCarrots added the automerge Merge this Pull Request automatically once CI passes label Dec 15, 2022
@mergify mergify bot merged commit ccd96e2 into solana-labs:master Dec 15, 2022
mergify bot pushed a commit that referenced this pull request Dec 15, 2022
@fanatid fanatid deleted the opt-filters-fix branch December 15, 2022 20:49
mergify bot added a commit that referenced this pull request Dec 15, 2022
rpc: fix possible panics in optimize_filters (#29146)

(cherry picked from commit ccd96e2)

Co-authored-by: Kirill Fomichev <[email protected]>
gnapoli23 pushed a commit to gnapoli23/solana that referenced this pull request Dec 16, 2022
nickfrosty pushed a commit to nickfrosty/solana that referenced this pull request Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Merge this Pull Request automatically once CI passes community Community contribution
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants