mirror of
https://github.com/github/codeql.git
synced 2026-05-02 20:25:13 +02:00
merge in main
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
s = "taintedString"
|
||||
|
||||
if s.startswith("tainted"): # $checks=s branch=true
|
||||
if s.startswith("tainted"):
|
||||
s2 = s # $SafeAccessCheck=s
|
||||
pass
|
||||
|
||||
sw = s.startswith
|
||||
if sw("safe"): # $ MISSING: checks=s branch=true
|
||||
if sw("safe"):
|
||||
s2 = s # $ MISSING: SafeAccessCheck=s
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user