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

Java: Improve dispatch through TypeFlow of effectively private calls. #16561

Merged

Conversation

aschackmull
Copy link
Contributor

This improves TypeFlow to account for more argument-parameter pairs. Previously this was restricted to private callables, as we need to ensure that a proper closed-world assumption applies, since we're doing a universal flow calculation, but this can be extended to all callables that aren't implicitly public.

Improved TypeFlow means improved virtual dispatch, which ought to translate to more precise data flow.

@aschackmull aschackmull requested a review from a team as a code owner May 22, 2024 13:21
@github-actions github-actions bot added the Java label May 22, 2024
@aschackmull
Copy link
Contributor Author

The 24 removed results in OWASP were indeed FPs, so that's a nice improvement.

@aschackmull aschackmull force-pushed the java/typeflow-effectively-private branch from b9bd2ce to b519f13 Compare May 23, 2024 08:50
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.

LGTM

@aschackmull aschackmull merged commit 06ce40c into github:main May 31, 2024
15 checks passed
@aschackmull aschackmull deleted the java/typeflow-effectively-private branch May 31, 2024 13:11
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.

None yet

2 participants