Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2baed20

Browse files
committed
Python: Test false negative from review
1 parent b6313dd commit 2baed20

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@
22

33
if s.startswith("tainted"): # $checks=s $branch=true
44
pass
5+
6+
sw = s.startswith # $f-:checks=s $f-:branch=true
7+
if sw("safe"):
8+
pass

0 commit comments

Comments
 (0)