Skip to content

Commit 2e4e5ef

Browse files
committed
fix a comment
1 parent 8768eb6 commit 2e4e5ef

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

ruby/ql/src/experimental/CWE-522-DecompressionBombs/DecompressionBombs.qll

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,16 +81,18 @@ module ZipInputStream {
8181
/**
8282
* Gets a node of `Zip::InputStream` member
8383
*
84-
* Note that if you use the lower level Zip::InputStream interface, rubyzip does not check the entry sizes.
84+
* Note that if you use the lower level Zip::InputStream interface, rubyZip does not check the entry sizes.
8585
*/
8686
private API::Node zipInputStream() {
8787
result = API::getTopLevelMember("Zip").getMember("InputStream")
8888
}
8989

9090
/**
91-
* The return values of following methods
92-
* `ZipIO.read`
93-
* `ZipEntry.extract`
91+
* The methods
92+
* `Zip::InputStream.read`
93+
* `Zip::InputStream.extract`
94+
*
95+
* as source of decompression bombs, they need an additional taint step for a dataflow or taint tracking query
9496
*/
9597
class DecompressionBombSink extends DecompressionBomb::Range {
9698
DecompressionBombSink() { this = zipInputStream().getMethod(["open", "new"]) }

0 commit comments

Comments
 (0)