Git Product home page Git Product logo

Comments (5)

astrelsky avatar astrelsky commented on August 23, 2024

Hmm. It appears that the type info for std::type_info is found but it either can't find the vtable or verification is failing.

Is the symbol for std::type_info::vtable present? If so I would like to see what the data there looks like.

from ghidra-cpp-class-analyzer.

Noh3choo avatar Noh3choo commented on August 23, 2024

readelf shows std::type_info

  4747: 0000000000416dcc     4 FUNC    GLOBAL DEFAULT    3 std::type_info::~type_info()
  4752: 000000000073a8c0    16 OBJECT  GLOBAL DEFAULT   11 typeinfo for std::type_info
  4791: 0000000000416dcc     4 FUNC    GLOBAL DEFAULT    3 std::type_info::~type_info()

However I do not see a vtable in the symbols like I do for other classes.

from ghidra-cpp-class-analyzer.

astrelsky avatar astrelsky commented on August 23, 2024

readelf shows std::type_info

  4747: 0000000000416dcc     4 FUNC    GLOBAL DEFAULT    3 std::type_info::~type_info()
  4752: 000000000073a8c0    16 OBJECT  GLOBAL DEFAULT   11 typeinfo for std::type_info
  4791: 0000000000416dcc     4 FUNC    GLOBAL DEFAULT    3 std::type_info::~type_info()

However I do not see a vtable in the symbols like I do for other classes.

Is this something you can share (ie have the rights to distribute it)? This should be an impossible situation.

Is this by any chance an android app? Just curious as I've seen some pretty strange things in that area particularly with the ndk.

from ghidra-cpp-class-analyzer.

Martmists-GH avatar Martmists-GH commented on August 23, 2024

An android native binary I'm working on has this exact same issue.
here is a link to the file in question

from ghidra-cpp-class-analyzer.

astrelsky avatar astrelsky commented on August 23, 2024

An android native binary I'm working on has this exact same issue.
here is a link to the file in question

I will take a look when I have some free time. However, please be advised that you will encounter some other problems when using the analyzer on Android binaries. Android vtables in particular don't seem to follow the common "rules" such as having the destructors in function table slots 0 and 1 but the analyzer might still assume it is. There is some verification for the destructors but depending on how complex it is expected to be it may incorrectly determine it to be a destructor.

from ghidra-cpp-class-analyzer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.