-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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: unreasonable flow #10828
Comments
Hi @flowingair. Thanks for your question. If this shows up in a query you're writing, would you be willing to share the query? This would make it easier for us to give concrete advise. If this shows up in an existing query, could you tell us which query? |
Here your are.
|
The flow path you're getting looks correct to me. Note that the source you have defined is inside the |
I can understand that it will be useful to trace the parmeter of constructor. |
In general, flow can be blocked by overriding |
i had tried,but it wont work.can i have an example?please. |
Can you show us what you tried? |
deleted. |
Add something like the following to your configuration (
|
but i dont have a list of constructors.some constructors may call the constructor of other class. |
The options are |
This was just an example. You of course don't have to list constructor types explicitly, you have all of CodeQL at your disposal to describe the patterns that you want in however way you want to. |
ql for CVE-2022-44262(ff4j/ff4j#624)
|
PostUpdateNode or ThisAcess may flow to the wrong ClassInstanceExpr of the class.
Which may lead to wrong result and slow down the analyze.
How can i fix it?
for example this.data will flow to new RealSource(data);
The text was updated successfully, but these errors were encountered: