Skip to content

Soot resolved an incorrect method signautre #2021

Open
@sarser2048

Description

@sarser2048

Describe the bug
I used Soot to analyze some real-world projects, and found it provides an incorrect method signature, which has redundant single quotes.

Input file
Maven Repo Link

The correct signature should be:
com.fasterxml.jackson.core.util.JacksonFeatureSet: com.fasterxml.jackson.core.util.JacksonFeatureSet with(com.fasterxml.jackson.core.util.JacksonFeature)

However, I got the incorrect results with redudant single quotes in the method name.
6141700197768_ pic

To reproduce
Directly use Soot analyze this class file and retrieve the method signature:

for (SootClass klass : Scene.v().getApplicationClasses()) {
  if (klass.isConcrete() && klass.getName().startsWith(PKG_NAME)) {
      for (SootMethod method : klass.getMethods()) {
          if(method.isJavaLibraryMethod()) {
              continue;
          }
          method.retrieveActiveBody();
          if (!method.hasActiveBody()) {
              System.out.println("No Active Body: " + method.getName());
              continue;
          }
          // .......

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions