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

[dataflowengineoss] revert DdgGenerator usage of globalFromLiteral #4582

Merged
merged 2 commits into from
May 21, 2024

Conversation

xavierpinho
Copy link
Contributor

Follow up on #4576:

The issue in 4549 is that globalFromLiteral was being overly inclusive when computing the starting points for reachableBy. Having fixed that, we noticed missing flows afterward. The trouble is that globalFromLiteral is also being used by DdgGenerator. So, a quick fix is to have DdgGenerator use the original globalFromLiteral while keeping reachableBy use the updated version.

@xavierpinho xavierpinho added bug Something isn't working python Relates to pysrc2cpg dataflow engine Relates to dataflowengineoss labels May 21, 2024
@xavierpinho xavierpinho merged commit 445f243 into master May 21, 2024
5 checks passed
@xavierpinho xavierpinho deleted the xavierp/python-ddg branch May 21, 2024 17:47
karan-batavia pushed a commit to Privado-Inc/joern that referenced this pull request Jun 18, 2024
…oernio#4582)

* [dataflowengineoss] DdgGenerator using original globalFromLiteral's implementation

* simplify some tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dataflow engine Relates to dataflowengineoss python Relates to pysrc2cpg
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[python] incoherent flow when using a literal vs identifier argument
2 participants