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

Python: Support dict.get in type-trackers [WIP] #113

Draft
wants to merge 17 commits into
base: tt-content
Choose a base branch
from

Conversation

RasmusWL
Copy link
Owner

No description provided.

RasmusWL added 17 commits March 12, 2024 15:35
Due to the char-pred of Content, this change should keep exactly the
same behavior as before.
This should not result in many changes, since store/load steps are still
only implemented for attributes.
While it might be useful to track content to any lookup, it's not
something we do right now.
Instead of just relying on the call-graph tests
By using the "simple" variant in the summaries for dictionaries, which
should be understood by the type-tracking system. However, it doesn't
seem to help much :|

Implementation based on:
https://github.com/github/codeql/blob/3b1146bf98466a154d647b638d6be301bfe27834/python/ql/test/experimental/dataflow/typetracking-summaries/TestSummaries.qll#L38-L42
Still doesn't fix the `typetracking/content_test.py` test though
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant