From 386e45a11e14e9a9c8ff838abdd21bb03aa5979f Mon Sep 17 00:00:00 2001 From: am0o0 <77095239+am0o0@users.noreply.github.com> Date: Tue, 3 Sep 2024 15:33:14 +0200 Subject: [PATCH] delete bzip2 as it is not updated for more than three years so it is not in the priority --- .../Security/CWE/CWE-409/Bzip2.qll | 43 ------------------- .../CWE/CWE-409/DecompressionBomb.qll | 1 - 2 files changed, 44 deletions(-) delete mode 100644 cpp/ql/src/experimental/query-tests/Security/CWE/CWE-409/Bzip2.qll diff --git a/cpp/ql/src/experimental/query-tests/Security/CWE/CWE-409/Bzip2.qll b/cpp/ql/src/experimental/query-tests/Security/CWE/CWE-409/Bzip2.qll deleted file mode 100644 index 5d198eff61ae..000000000000 --- a/cpp/ql/src/experimental/query-tests/Security/CWE/CWE-409/Bzip2.qll +++ /dev/null @@ -1,43 +0,0 @@ -/** - * https://www.sourceware.org/bzip2/manual/manual.html - */ - -import cpp -import semmle.code.cpp.ir.dataflow.TaintTracking -import DecompressionBomb - -/** - * The `BZ2_bzDecompress` function is used in flow sink - */ -class BZ2BzDecompressFunction extends DecompressionFunction { - BZ2BzDecompressFunction() { this.hasGlobalName(["BZ2_bzDecompress"]) } - - override int getArchiveParameterIndex() { result = 0 } -} - -/** - * The `BZ2_bzReadOpen` function - */ -class BZ2BzReadOpenFunction extends DecompressionFunction { - BZ2BzReadOpenFunction() { this.hasGlobalName(["BZ2_bzReadOpen"]) } - - override int getArchiveParameterIndex() { result = 0 } -} - -/** - * The `BZ2_bzRead` function is used in flow sink. - */ -class BZ2BzReadFunction extends DecompressionFunction { - BZ2BzReadFunction() { this.hasGlobalName("BZ2_bzRead") } - - override int getArchiveParameterIndex() { result = 1 } -} - -/** - * The `BZ2_bzBuffToBuffDecompress` function is used in flow sink. - */ -class BZ2BzBuffToBuffDecompressFunction extends DecompressionFunction { - BZ2BzBuffToBuffDecompressFunction() { this.hasGlobalName("BZ2_bzBuffToBuffDecompress") } - - override int getArchiveParameterIndex() { result = 2 } -} diff --git a/cpp/ql/src/experimental/query-tests/Security/CWE/CWE-409/DecompressionBomb.qll b/cpp/ql/src/experimental/query-tests/Security/CWE/CWE-409/DecompressionBomb.qll index 6a46eb4a778b..e330e244c381 100644 --- a/cpp/ql/src/experimental/query-tests/Security/CWE/CWE-409/DecompressionBomb.qll +++ b/cpp/ql/src/experimental/query-tests/Security/CWE/CWE-409/DecompressionBomb.qll @@ -6,7 +6,6 @@ import ZlibInflator import ZlibUncompress import LibArchive import ZSTD -import Bzip2 import Brotli /**