Files
codeql/python/ql/test/experimental/library-tests/frameworks/stdlib/SafeAccessCheck.py
2020-10-27 08:30:16 +01:00

9 lines
159 B
Python

s = "taintedString"
if s.startswith("tainted"): # $checks=s $branch=true
pass
sw = s.startswith # $f-:checks=s $f-:branch=true
if sw("safe"):
pass