We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7772f1 commit d8fd457Copy full SHA for d8fd457
python/ql/src/experimental/semmle/python/security/DecompressionBomb.qll
@@ -54,12 +54,7 @@ module ZipFile {
54
exists(API::Node zipOpen | zipOpen = zipFileClass().getReturn().getMember("open") |
55
// this open function must reads uncompressed data with buffer
56
// and checks the accumulated size at the end of each read to be called safe
57
- not TaintTracking::localExprTaint(zipOpen
58
- .getReturn()
59
- .getMember("read")
60
- .getParameter(0)
61
- .asSink()
62
- .asExpr(), any(Compare i).getASubExpression*()) and
+ not zipFileDecompressionBombSanitizer(zipOpen) and
63
this = zipOpen.getACall()
64
)
65
}
0 commit comments