File tree Expand file tree Collapse file tree 2 files changed +12
-9
lines changed
python/ql/test/library-tests/taint/namedtuple Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 33| test.py:13 | test_basic | c | externally controlled string |
44| test.py:13 | test_basic | d | externally controlled string |
55| test.py:13 | test_basic | urlsplit_res | [externally controlled string] |
6- | test.py:20 | test_sanitizer | Attribute | NO TAINT |
7- | test.py:23 | test_sanitizer | Subscript | NO TAINT |
8- | test.py:26 | test_sanitizer | Attribute | NO TAINT |
9- | test.py:29 | test_sanitizer | Attribute | NO TAINT |
10- | test.py:32 | test_sanitizer | Attribute | externally controlled string |
11- | test.py:42 | test_namedtuple | a | NO TAINT |
12- | test.py:42 | test_namedtuple | b | NO TAINT |
13- | test.py:42 | test_namedtuple | c | NO TAINT |
14- | test.py:42 | test_namedtuple | d | NO TAINT |
6+ | test.py:19 | test_sanitizer | Attribute | externally controlled string |
7+ | test.py:22 | test_sanitizer | Attribute | NO TAINT |
8+ | test.py:25 | test_sanitizer | Subscript | NO TAINT |
9+ | test.py:28 | test_sanitizer | Attribute | NO TAINT |
10+ | test.py:31 | test_sanitizer | Attribute | NO TAINT |
11+ | test.py:34 | test_sanitizer | Attribute | externally controlled string |
12+ | test.py:44 | test_namedtuple | a | NO TAINT |
13+ | test.py:44 | test_namedtuple | b | NO TAINT |
14+ | test.py:44 | test_namedtuple | c | NO TAINT |
15+ | test.py:44 | test_namedtuple | d | NO TAINT |
Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ def test_sanitizer():
1616 tainted_string = TAINTED_STRING
1717 urlsplit_res = urlsplit (tainted_string )
1818
19+ test (urlsplit_res .netloc ) # should be tainted
20+
1921 if urlsplit_res .netloc == "OK" :
2022 test (urlsplit_res .netloc )
2123
You can’t perform that action at this time.
0 commit comments