From 7f648716882a929fd418681112df89bc9528f2e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=98=8A=E5=8E=9F?= Date: Mon, 26 Apr 2021 13:14:18 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix=20=E8=A7=A3=E5=86=B3=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=91=BD=E5=90=8D=E5=AF=BC=E8=87=B4=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iast/core/enhance/{IASTContext.java => IastContext.java} | 0 .../models/{IASTPropagatorModel.java => IastPropagatorModel.java} | 0 .../core/threadlocalpool/{IASTAppName.java => IastAppName.java} | 0 .../{IASTResponseCache.java => IastResponseCache.java} | 0 4 files changed, 0 insertions(+), 0 deletions(-) rename iast-core/src/main/java/com/secnium/iast/core/enhance/{IASTContext.java => IastContext.java} (100%) rename iast-core/src/main/java/com/secnium/iast/core/handler/models/{IASTPropagatorModel.java => IastPropagatorModel.java} (100%) rename iast-core/src/main/java/com/secnium/iast/core/threadlocalpool/{IASTAppName.java => IastAppName.java} (100%) rename iast-core/src/main/java/com/secnium/iast/core/threadlocalpool/{IASTResponseCache.java => IastResponseCache.java} (100%) diff --git a/iast-core/src/main/java/com/secnium/iast/core/enhance/IASTContext.java b/iast-core/src/main/java/com/secnium/iast/core/enhance/IastContext.java similarity index 100% rename from iast-core/src/main/java/com/secnium/iast/core/enhance/IASTContext.java rename to iast-core/src/main/java/com/secnium/iast/core/enhance/IastContext.java diff --git a/iast-core/src/main/java/com/secnium/iast/core/handler/models/IASTPropagatorModel.java b/iast-core/src/main/java/com/secnium/iast/core/handler/models/IastPropagatorModel.java similarity index 100% rename from iast-core/src/main/java/com/secnium/iast/core/handler/models/IASTPropagatorModel.java rename to iast-core/src/main/java/com/secnium/iast/core/handler/models/IastPropagatorModel.java diff --git a/iast-core/src/main/java/com/secnium/iast/core/threadlocalpool/IASTAppName.java b/iast-core/src/main/java/com/secnium/iast/core/threadlocalpool/IastAppName.java similarity index 100% rename from iast-core/src/main/java/com/secnium/iast/core/threadlocalpool/IASTAppName.java rename to iast-core/src/main/java/com/secnium/iast/core/threadlocalpool/IastAppName.java diff --git a/iast-core/src/main/java/com/secnium/iast/core/threadlocalpool/IASTResponseCache.java b/iast-core/src/main/java/com/secnium/iast/core/threadlocalpool/IastResponseCache.java similarity index 100% rename from iast-core/src/main/java/com/secnium/iast/core/threadlocalpool/IASTResponseCache.java rename to iast-core/src/main/java/com/secnium/iast/core/threadlocalpool/IastResponseCache.java From fc1e3507164521e6beb5f5d7b2a859bfe02c5b8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=98=8A=E5=8E=9F?= Date: Mon, 26 Apr 2021 13:15:23 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix=20=E8=A7=A3=E5=86=B3=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=91=BD=E5=90=8D=E5=AF=BC=E8=87=B4=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core/enhance/sca/{SCAScanner.java => ScaScanner.java} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename iast-core/src/main/java/com/secnium/iast/core/enhance/sca/{SCAScanner.java => ScaScanner.java} (94%) diff --git a/iast-core/src/main/java/com/secnium/iast/core/enhance/sca/SCAScanner.java b/iast-core/src/main/java/com/secnium/iast/core/enhance/sca/ScaScanner.java similarity index 94% rename from iast-core/src/main/java/com/secnium/iast/core/enhance/sca/SCAScanner.java rename to iast-core/src/main/java/com/secnium/iast/core/enhance/sca/ScaScanner.java index a0a1bdb30..a90539853 100644 --- a/iast-core/src/main/java/com/secnium/iast/core/enhance/sca/SCAScanner.java +++ b/iast-core/src/main/java/com/secnium/iast/core/enhance/sca/ScaScanner.java @@ -24,7 +24,7 @@ public static void scan(File file) { if (file.exists()) { String packageName = file.getName(); String signature = SignatureAlgorithm.getSignature(file, ScaScanner.ALGORITHM); - if (null != packageName && null != signature) { + if (null != signature) { AssestReport.sendReport(filePath, packageName, signature, ScaScanner.ALGORITHM); } } @@ -51,7 +51,7 @@ public static void scanWithJarPackage(String path) { InputStream is = getJarInputStream(path, entryName); String signature = SignatureAlgorithm.getSignature(is, ScaScanner.ALGORITHM); String packageName = entry.getName(); - if (null != packageName && null != signature) { + if (null != signature) { AssestReport.sendReport("jar:file:" + path + "!/" + entryName, packageName, signature, ScaScanner.ALGORITHM); } }