Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 2k
Python: Remove imprecise container steps#17493
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
83835da25e25d512fc379382b3ce53b1678ee96655111c0992185362e13a43dFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -32,7 +32,6 @@ def test_construction(): | ||||||||||||
| list(tainted_tuple), # $ tainted | ||||||||||||
| list(tainted_set), # $ tainted | ||||||||||||
| list(tainted_dict.values()), # $ tainted | ||||||||||||
| list(tainted_dict.items()), # $ tainted | ||||||||||||
| tuple(tainted_list), # $ tainted | ||||||||||||
| set(tainted_list), # $ tainted | ||||||||||||
| @@ -44,7 +43,8 @@ def test_construction(): | ||||||||||||
| ) | ||||||||||||
| ensure_not_tainted( | ||||||||||||
| dict(k = tainted_string)["k1"] | ||||||||||||
| dict(k = tainted_string)["k1"], | ||||||||||||
| list(tainted_dict.items()), | ||||||||||||
Comment on lines
+46
to
+47
CopilotAI | ||||||||||||
| dict(k=tainted_string)["k1"], | |
| list(tainted_dict.items()), | |
| dict(k=tainted_string)["k1"], | |
| # The items extracted from `tainted_dict` are expected to be untainted | |
| # because the taint only applies to the values, not the key-value pairs as a whole. |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -63,7 +63,8 @@ def get(self, name = "World!", number="0", foo="foo"): # $ requestHandler route | ||||||
| request.headers["header-name"], # $ tainted | ||||||
| request.headers.get_list("header-name"), # $ tainted | ||||||
| request.headers.get_all(), # $ tainted | ||||||
| [(k, v) for (k, v) in request.headers.get_all()], # $ tainted | ||||||
| [(k, v) for (k, v) in request.headers.get_all()][0], # $ tainted | ||||||
| list([(k, v) for (k, v) in request.headers.get_all()])[0], # $ tainted | ||||||
CopilotAI | ||||||
| list([(k, v) for (k, v) inrequest.headers.get_all()])[0], # $ tainted | |
| [(k, v) for (k, v) inrequest.headers.get_all()][0], # $ tainted |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In a test file like this one, we specifically want to list many different approaches; we want coverage rather than uniformity.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should also include
DataFlow::DictionaryElementAnyContent.