From 1b3532b8f66ee5cf41e18f097e9d990968b54ac9 Mon Sep 17 00:00:00 2001 From: lostsnow Date: Tue, 13 Sep 2022 18:57:02 +0800 Subject: [PATCH] change normal vul report full stacks --- .../hookpoint/vulscan/normal/AbstractNormalVulScan.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/dongtai-core/src/main/java/io/dongtai/iast/core/handler/hookpoint/vulscan/normal/AbstractNormalVulScan.java b/dongtai-core/src/main/java/io/dongtai/iast/core/handler/hookpoint/vulscan/normal/AbstractNormalVulScan.java index 8402fcbf7..d2056b039 100644 --- a/dongtai-core/src/main/java/io/dongtai/iast/core/handler/hookpoint/vulscan/normal/AbstractNormalVulScan.java +++ b/dongtai-core/src/main/java/io/dongtai/iast/core/handler/hookpoint/vulscan/normal/AbstractNormalVulScan.java @@ -7,12 +7,11 @@ import io.dongtai.iast.core.utils.Constants; import io.dongtai.iast.core.utils.StackUtils; import io.dongtai.iast.core.utils.base64.Base64Encoder; - -import java.util.Map; - import org.json.JSONArray; import org.json.JSONObject; +import java.util.Map; + /** * @author dongzhiyong@huoxian.cn */ @@ -57,7 +56,7 @@ public void sendReport(StackTraceElement[] stacks, String vulType) { } protected StackTraceElement[] getLatestStack() { - return StackUtils.createCallStack(10); + return StackUtils.createCallStack(0); } public static String getEncodedHeader(Map headers) {