Skip to content

Java: Allow flow out of FieldValueNodes for non-static fields #13817

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

Conversation

atorralba
Copy link
Contributor

Sometimes, directly tainting FieldValueNodes of non-static fields is useful (e.g. sources). With this change, we allow flow out of them even if their field isn't static.

@github-actions github-actions bot added the Java label Jul 25, 2023
@atorralba atorralba marked this pull request as ready for review July 26, 2023 07:34
@atorralba atorralba requested a review from a team as a code owner July 26, 2023 07:34
@atorralba
Copy link
Contributor Author

DCA looks uneventful.

@atorralba atorralba added the no-change-note-required This PR does not need a change note label Jul 26, 2023
@atorralba atorralba force-pushed the atorralba/java/non-static-fieldvaluenode-step branch from 5df245a to 602eb43 Compare July 26, 2023 08:00
aschackmull
aschackmull previously approved these changes Jul 26, 2023
Copy link
Contributor

@aschackmull aschackmull 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
Copy link
Contributor

DCA looks uneventful.

As it should be. On its own it should not be possible for this change to affect any flow anywhere - it requires a source definition that's a FieldValueNode in order to have an effect.

@atorralba atorralba force-pushed the atorralba/java/non-static-fieldvaluenode-step branch from f617f30 to 8685242 Compare July 26, 2023 12:13
@atorralba
Copy link
Contributor Author

@aschackmull I added some tests. If you don't mind, please re-approve.

@atorralba atorralba merged commit 9d6bc76 into github:main Jul 27, 2023
@atorralba atorralba deleted the atorralba/java/non-static-fieldvaluenode-step branch July 27, 2023 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Java no-change-note-required This PR does not need a change note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants