summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorprakash.e@huawei.com <prakash.e@huawei.com>2022-04-11 15:32:15 +0530
committerprakash.e@huawei.com <prakash.e@huawei.com>2022-04-11 15:33:20 +0530
commite671f44cf0ad1ceba42ef7727d1ac46502c49b92 (patch)
tree3a110f77316eaf351cf82b4249775440aae7bd26
parentd1cdc63f13a680a1c7438461c56e86f3580cfeb9 (diff)
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 <prakash.e@huawei.com> Change-Id: I37a9eb51d2c1896045951e86f45dcec8c39b060e
-rw-r--r--csarvalidation/src/main/java/org/onap/validation/csar/CsarUtil.java2
1 files changed, 1 insertions, 1 deletions
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) {