File tree Expand file tree Collapse file tree
python/ql/test/experimental/library-tests/frameworks/stdlib Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ open ("filepath" ) # $getAPathArgument="filepath"
2+ open (file = "filepath" ) # $getAPathArgument="filepath"
3+
4+ o = open
5+
6+ o ("filepath" ) # f-:$getAPathArgument="filepath"
7+ o (file = "filepath" ) # f-:$getAPathArgument="filepath"
Original file line number Diff line number Diff line change 1+ import os .path
2+
3+ path = "un\\ normalized/path"
4+
5+ p1 = os .path .normpath (path ) # $pathNormalization
6+ p2 = os .path .normpath (path = path ) # $pathNormalization
7+
8+ np = os .path .normpath
9+
10+ p3 = np (path ) # $pathNormalization
11+ p4 = np (path = path ) # $pathNormalization
12+
13+
14+ def normalize (path ):
15+ return os .path .normpath (path ) # $pathNormalization
16+
17+
18+ p5 = normalize (path )
19+ p6 = normalize (path = path )
Original file line number Diff line number Diff line change 1+ s = "taintedString"
2+
3+ if s .startswith ("tainted" ): # $checks=s $branch=true
4+ pass
You can’t perform that action at this time.
0 commit comments