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(multi-search): crash in case of requests-results count mismatch #261

Merged
merged 3 commits into from Nov 2, 2022

Conversation

VladislavFitz
Copy link
Contributor

@VladislavFitz VladislavFitz commented Oct 27, 2022

Summary

In AbstractMultiSearcher during the extraction of the subranges of the results, there is no check if the subrange bounds are compatible with the results size (index out of bounds exception). In some circumstances this can provoke a crash.

Result

The crash conditions are checked and an error MultiSearchError.rangeError is thrown to prevent it.

@VladislavFitz VladislavFitz marked this pull request as ready for review October 28, 2022 10:17
@VladislavFitz VladislavFitz changed the title fix: throw error in case of requests-results count mismatch in multis… fix(multi-search): crash in case of requests-results count mismatch Oct 28, 2022
@VladislavFitz VladislavFitz merged commit 47ae361 into master Nov 2, 2022
@VladislavFitz VladislavFitz deleted the fix/multi-searcher-results-crash branch November 2, 2022 12:48
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.

None yet

2 participants