Files
codeql/python/ql/test/library-tests/frameworks/stdlib/SafeAccessCheck.py
Rasmus Wriedt Larsen d9079e34e3 Python: Move framework tests out of experimental
Since they are not experimental anymore 😄
2021-03-19 15:51:54 +01:00

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