feat: display metadata for each signature in SignatureChecker

This commit is contained in:
oSumAtrIX 2022-04-17 18:46:27 +02:00
parent e46ef02302
commit 736a71fac2
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -27,8 +27,8 @@ internal class SignatureChecker {
if (patternScanMethod is PatternScanMethod.Fuzzy) {
val warnings = patternScanMethod.warnings!!
val method = signature.result!!.method
println("Signature: ${signature.metadata.name}.\nMethod: ${method.definingClass}->${method.toStr()}\nWarnings: ${warnings.count()}")
val methodFromMetadata = signature.metadata.methodMetadata
println("Signature: ${signature.metadata.name}.\nMethod: ${methodFromMetadata.definingClass}->${methodFromMetadata.name} (Signature matches: ${method.definingClass}->${method.toStr()})\nWarnings: ${warnings.count()}")
for (warning in warnings) {
println("${warning.instructionIndex} / ${warning.patternIndex}: ${warning.wrongOpcode} (expected: ${warning.correctOpcode})")
}