Skip to content

Commit 1b97804

Browse files
committed
update tests
1 parent 7bb7d83 commit 1b97804

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

java/ql/test/experimental/query-tests/security/CWE-522-DecompressionBombs/CommonsCompressHandler.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,6 @@ public static void commonsCompressorInputStream(InputStream inputStream) throws
5858
new XZCompressorInputStream(in); // $ hasTaintFlow="in"
5959
new ZCompressorInputStream(in); // $ hasTaintFlow="in"
6060
new ZstdCompressorInputStream(in); // $ hasTaintFlow="in"
61-
62-
int buffersize = 4096;
63-
final byte[] buffer = new byte[buffersize];
64-
int n = 0;
65-
while (-1 != (n = gzIn.read(buffer))) {
66-
out.write(buffer, 0, n);
67-
}
68-
out.close();
69-
gzIn.close();
7061
}
7162

7263
static void commonsCompressArchiveInputStream2(InputStream inputStream) {

0 commit comments

Comments
 (0)