Giter Site home page Giter Site logo

vtable assignment about llvm-mctoll HOT 5 OPEN

microsoft avatar microsoft commented on May 17, 2024
vtable assignment

from llvm-mctoll.

Comments (5)

bharadwajy avatar bharadwajy commented on May 17, 2024

Thanks again for testing the tool and providing the encouragement.

We will look at the issues you pointed out - unless you or someone else can beat us by providing a patch to address these issues :-)

from llvm-mctoll.

Trass3r avatar Trass3r commented on May 17, 2024

Btw, of course the actual virtual call to foo does not work yet. But that's probably known.

from llvm-mctoll.

bharadwajy avatar bharadwajy commented on May 17, 2024

Yes, you are right. There are a host of extremely interesting C++ idioms to be abstracted (raised) to LLVM IR level once we get a chance to focus on raising C++ binaries.

from llvm-mctoll.

Trass3r avatar Trass3r commented on May 17, 2024

PoC: Trass3r@47e61ec

@_ZTV4Base = weak dso_local global [5 x i64] [i64 0, i64 0, i64 4198742, i64 4198744, i64 4198750]

  %1 = getelementptr inbounds [5 x i64], [5 x i64]* @_ZTV4Base, i32 0, i32 2
  %2 = inttoptr i64 %RDI to i64**
  store i64* %1, i64** %2, align 8

Basically works but would require something more sophisticated to avoid false positives and the table entries would have to be converted into actual function pointers.

from llvm-mctoll.

Trass3r avatar Trass3r commented on May 17, 2024

Related: 6f71623

from llvm-mctoll.

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.