Files
codeql/python/ql/test/experimental/library-tests/frameworks/stdlib/SafeAccessCheck.py

9 lines
161 B
Python

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