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 7bb7d83 commit 1b97804Copy full SHA for 1b97804
java/ql/test/experimental/query-tests/security/CWE-522-DecompressionBombs/CommonsCompressHandler.java
@@ -58,15 +58,6 @@ public static void commonsCompressorInputStream(InputStream inputStream) throws
58
new XZCompressorInputStream(in); // $ hasTaintFlow="in"
59
new ZCompressorInputStream(in); // $ hasTaintFlow="in"
60
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();
70
}
71
72
static void commonsCompressArchiveInputStream2(InputStream inputStream) {
0 commit comments