mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Fix tests by stubbing relevant os functions.
This commit is contained in:
@@ -1 +1,3 @@
|
||||
| InsecureTemporaryFile.py:5:16:5:23 | ControlFlowNode for mktemp() | Call to deprecated function $@.$@ may be insecure. | tempfile | mktemp |
|
||||
| InsecureTemporaryFile.py:11:16:11:27 | ControlFlowNode for Attribute() | Call to deprecated function $@.$@ may be insecure. | os | tempnam |
|
||||
| InsecureTemporaryFile.py:17:16:17:26 | ControlFlowNode for Attribute() | Call to deprecated function $@.$@ may be insecure. | os | tmpnam |
|
||||
|
||||
2
python/ql/test/query-tests/Security/CWE-377/options
Normal file
2
python/ql/test/query-tests/Security/CWE-377/options
Normal file
@@ -0,0 +1,2 @@
|
||||
semmle-extractor-options: -p ../lib/ --max-import-depth=3
|
||||
optimize: true
|
||||
@@ -9,3 +9,9 @@ def chmod(path, mode):
|
||||
|
||||
def open(path, flags, mode):
|
||||
pass
|
||||
|
||||
def tempnam(*args):
|
||||
pass
|
||||
|
||||
def tmpnam(*args):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user