Skip to content

Commit e1af093

Browse files
committed
Python: Add test
1 parent e6e0501 commit e1af093

File tree

1 file changed

+5
-0
lines changed
  • python/ql/test/experimental/query-tests/Security/CWE-409

1 file changed

+5
-0
lines changed

python/ql/test/experimental/query-tests/Security/CWE-409/test.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ async def bomb(file_path):
4949
gzip.open(file_path) # $ result=BAD
5050
gzip.GzipFile(file_path) # $ result=BAD
5151

52+
from compression import zstd
53+
54+
zstd.open(file_path) # $ result=BAD
55+
zstd.ZstdFile(file_path).read() # $ result=BAD
56+
5257
import pandas
5358

5459
pandas.read_csv(filepath_or_buffer=file_path) # $ result=BAD

0 commit comments

Comments
 (0)