add the snappy missed sink

This commit is contained in:
am0o0
2024-07-13 11:15:45 +02:00
parent 8c106964ec
commit 025aa77e79
2 changed files with 18 additions and 1 deletions

View File

@@ -12,7 +12,7 @@ public class SnappyHandler {
byte[] readBuffer = new byte[4096];
try (SnappyInputStream zipInputStream = new SnappyInputStream(inputStream)) { // $ hasTaintFlow="inputStream"
try (OutputStream outputStream = Files.newOutputStream(Paths.get("extractedFile"))) {
while ((readLen = zipInputStream.read(readBuffer)) != -1) {
while ((readLen = zipInputStream.read(readBuffer)) != -1) { // $ hasTaintFlow="zipInputStream"
outputStream.write(readBuffer, 0, readLen);
}
}