Skip to content

Ruby: bugfix in type-tracking singleton class resolution #10773

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

Merged
merged 2 commits into from
Oct 12, 2022

Conversation

asgerf
Copy link
Contributor

@asgerf asgerf commented Oct 11, 2022

Fixes a bug in how the type-tracking associates a singleton class with its target module.

Evaluation looks good, about 4k new call edges, and neutral performance. There are 4 new alerts from rb/weak-cryptographic-algorithm which correctly point out that DES is used, although it seems intentional in that codebase.

@github-actions github-actions bot added the Ruby label Oct 11, 2022
@asgerf asgerf force-pushed the rb/bugfix-singleton-class-resolution branch from 01a1969 to ed165c6 Compare October 11, 2022 16:53
@asgerf asgerf changed the title Rb/bugfix singleton class resolution Ruby: bugfix type-tracking singleton class resolution Oct 11, 2022
@asgerf asgerf added the no-change-note-required This PR does not need a change note label Oct 11, 2022
@asgerf asgerf changed the title Ruby: bugfix type-tracking singleton class resolution Ruby: bugfix in type-tracking singleton class resolution Oct 11, 2022
@asgerf asgerf marked this pull request as ready for review October 11, 2022 17:55
@asgerf asgerf requested a review from a team as a code owner October 11, 2022 17:55
Copy link
Contributor

@hvitved hvitved left a comment

Choose a reason for hiding this comment

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

Good spot!

@asgerf asgerf merged commit 83464d4 into github:main Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-change-note-required This PR does not need a change note Ruby
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants