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 crash in pub grub involving empty ranges #6365

Merged
merged 1 commit into from Feb 13, 2023
Merged

Conversation

deivid-rodriguez
Copy link
Member

What was the end-user or developer problem that led to this PR?

This is another edge case surfacing an issue in pub grub upstream.

Some versions publish platform versions with incompatible Ruby support between each other. For example, unf_ext or google-protobuf. If both are used in the same resolution, we may end up checking hash equality against empty ranges and causing a resolver crash.

What is your fix for the problem, implemented in this PR?

Add the missing parameter in Pub Grub and get this edge case tested on our side.

Fixes #6326.

Make sure the following tasks are checked

Copy link
Member

@simi simi left a comment

Choose a reason for hiding this comment

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

It seems fixed as well in #6366. After merge of that one, it should be enough to rebase and pull in just additional specs if I understand it well. 💪

@deivid-rodriguez
Copy link
Member Author

Yes, but I'll do it the other way around if you don't mind, just to make it clear that this particular change in pub grub fixes this particular bug.

@deivid-rodriguez deivid-rodriguez added this pull request to the merge queue Feb 13, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Feb 13, 2023
@deivid-rodriguez deivid-rodriguez added this pull request to the merge queue Feb 13, 2023
Merged via the queue into master with commit 95a802b Feb 13, 2023
@deivid-rodriguez deivid-rodriguez deleted the fix-bad-args branch February 13, 2023 23:15
deivid-rodriguez added a commit that referenced this pull request Feb 15, 2023
Fix crash in pub grub involving empty ranges

(cherry picked from commit 95a802b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ArgumentError: wrong number of arguments (given 1, expected 0)
2 participants