From d385c9ca70a31b967e8fc8a3aaa7e80610c6b1a9 Mon Sep 17 00:00:00 2001 From: Ned Loynd Date: Thu, 8 Jun 2023 14:58:34 +1000 Subject: [PATCH] Fix issue with SIG2 detection --- src/main/java/me/cortex/jarscanner/Detector.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/cortex/jarscanner/Detector.java b/src/main/java/me/cortex/jarscanner/Detector.java index 3f06ab0..3c828f0 100644 --- a/src/main/java/me/cortex/jarscanner/Detector.java +++ b/src/main/java/me/cortex/jarscanner/Detector.java @@ -114,7 +114,7 @@ private static byte[] getByteArray(InputStream inputStream) throws IOException { private static final AbstractInsnNode[] SIG2 = new AbstractInsnNode[] { new MethodInsnNode(INVOKESTATIC, "java/lang/Runtime", "getRuntime", "()Ljava/lang/Runtime;"), new MethodInsnNode(INVOKESTATIC, "java/util/Base64", "getDecoder", "()Ljava/util/Base64$Decoder;"), - new MethodInsnNode(INVOKEVIRTUAL, "java/lang/String", "INVOKEVIRTUAL", + new MethodInsnNode(INVOKEVIRTUAL, "java/lang/String", "concat", "(Ljava/lang/String;)Ljava/lang/String;"), // TODO:FIXME: this might not be in all of them new MethodInsnNode(INVOKEVIRTUAL, "java/util/Base64$Decoder", "decode", "(Ljava/lang/String;)[B"), new MethodInsnNode(INVOKESPECIAL, "java/lang/String", "", "([B)V"),