Files
codeql/python/ql/test/library-tests/frameworks/stdlib/SafeAccessCheck.py
Rasmus Lerchedahl Petersen 8489403051 Python: Add some tests for pathlib
2021-04-15 09:40:23 +02:00

9 lines
161 B
Python

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