mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Python: Test false negative from review
This commit is contained in:
@@ -2,3 +2,7 @@ s = "taintedString"
|
||||
|
||||
if s.startswith("tainted"): # $checks=s $branch=true
|
||||
pass
|
||||
|
||||
sw = s.startswith # $f-:checks=s $f-:branch=true
|
||||
if sw("safe"):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user