Skip to content

Commit abdcfd5

Browse files
committed
Python: uncertainty is treated as a certificate :O
1 parent 2b892bc commit abdcfd5

File tree

1 file changed

+5
-0
lines changed
  • python/ql/test/experimental/dataflow/sensitive-data

1 file changed

+5
-0
lines changed

python/ql/test/experimental/dataflow/sensitive-data/test.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ def my_func(non_sensitive_name):
5656
def my_func(password): # $ SensitiveDataSource=password
5757
print(password) # $ SensitiveUse=password
5858

59+
# FP where the `cert` in `uncertainty` makes us treat it like a certificate
60+
# https://github.com/github/codeql/issues/9632
61+
def my_other_func(uncertainty): # $ SPURIOUS: SensitiveDataSource=certificate
62+
print(uncertainty) # $ SPURIOUS: SensitiveUse=certificate
63+
5964
password = some_function() # $ SensitiveDataSource=password
6065
print(password) # $ SensitiveUse=password
6166

0 commit comments

Comments
 (0)