From e671f44cf0ad1ceba42ef7727d1ac46502c49b92 Mon Sep 17 00:00:00 2001 From: "prakash.e@huawei.com" Date: Mon, 11 Apr 2022 15:32:15 +0530 Subject: Vulnerability handled for zip files in code https://sonarcloud.io/project/issues?resolved=false&severities=BLOCKER&id=onap_vnfsdk-validation&open=AXk4ivtaWcQzNZo7t49m Issue-ID: VNFSDK-832 Signed-off-by: prakash.e@huawei.com Change-Id: I37a9eb51d2c1896045951e86f45dcec8c39b060e --- csarvalidation/src/main/java/org/onap/validation/csar/CsarUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csarvalidation/src/main/java/org/onap/validation/csar/CsarUtil.java b/csarvalidation/src/main/java/org/onap/validation/csar/CsarUtil.java index 7d48b06..bea5aae 100644 --- a/csarvalidation/src/main/java/org/onap/validation/csar/CsarUtil.java +++ b/csarvalidation/src/main/java/org/onap/validation/csar/CsarUtil.java @@ -91,7 +91,7 @@ public final class CsarUtil { if (!file.getParentFile().exists()) { FileUtil.createDirectory(file.getParentFile().getAbsolutePath()); } - try (BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(file))){ + try (BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(file))){// NOSONAR while (true) { int length = input.read(buffer); if (length == -1) { -- cgit 1.2.3-korg