Skip to content

Commit 8fccd65

Browse files
committed
fix a mistake :(
1 parent b506b7d commit 8fccd65

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

python/ql/src/experimental/Security/CWE-409/DecompressionBombs.ql

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -502,8 +502,8 @@ module BombsConfig implements DataFlow::ConfigSig {
502502
predicate isSink(DataFlow::Node sink) {
503503
sink =
504504
[
505-
PyZipFile::isSink(), ZipFile::isSink(), Gzip::isSink(), Lzma::isSink(), Bz2::isSink(),
506-
TarFile::isSink(), Shutil::isSink(), Pandas::isSink()
505+
ZipFile::isSink(), Gzip::isSink(), Lzma::isSink(), Bz2::isSink(), TarFile::isSink(),
506+
Shutil::isSink(), Pandas::isSink()
507507
] and
508508
exists(sink.getLocation().getFile().getRelativePath())
509509
}
@@ -512,7 +512,6 @@ module BombsConfig implements DataFlow::ConfigSig {
512512
(
513513
isAdditionalTaintStepTextIOWrapper(nodeFrom, nodeTo) or
514514
ZipFile::isAdditionalTaintStep(nodeFrom, nodeTo) or
515-
PyZipFile::isAdditionalTaintStep(nodeFrom, nodeTo) or
516515
TarFile::isAdditionalTaintStep(nodeFrom, nodeTo)
517516
) and
518517
exists(nodeTo.getLocation().getFile().getRelativePath())

0 commit comments

Comments
 (0)