mirror of
https://github.com/github/codeql.git
synced 2026-05-02 12:15:17 +02:00
Use of inline tests for dataflow queries
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
missingAnnotationOnSink
|
||||
failures
|
||||
| UnsafeUnpack.py:12:46:12:58 | Comment # $result=BAD | Missing result:result=BAD |
|
||||
| UnsafeUnpack.py:55:53:55:65 | Comment # $result=BAD | Missing result:result=BAD |
|
||||
@@ -0,0 +1,2 @@
|
||||
import python
|
||||
import experimental.dataflow.TestUtil.DataflowQueryTest
|
||||
@@ -9,7 +9,7 @@ with open(tarpath, "wb") as f:
|
||||
f.write(response.raw.read())
|
||||
|
||||
untarredpath = "/tmp/tmp123"
|
||||
shutil.unpack_archive(tarpath, untarredpath)
|
||||
shutil.unpack_archive(tarpath, untarredpath) # $result=BAD
|
||||
|
||||
|
||||
import tempfile
|
||||
@@ -52,5 +52,5 @@ with tempfile.TemporaryDirectory() as temp_dir:
|
||||
)
|
||||
fs.get(uri, to_path, recursive=True)
|
||||
if unpack_path:
|
||||
shutil.unpack_archive(to_path, unpack_path)
|
||||
shutil.unpack_archive(to_path, unpack_path) # $result=BAD
|
||||
to_path = unpack_path
|
||||
|
||||
Reference in New Issue
Block a user