Coder Social home page Coder Social logo

Optimize reading/writing about luabackend HOT 2 CLOSED

sirius902 avatar sirius902 commented on September 14, 2024
Optimize reading/writing

from luabackend.

Comments (2)

Sirius902 avatar Sirius902 commented on September 14, 2024

Implemented in a445455. Thanks for this issue! I recall trying to make this optimization earlier but I couldn't figure out exactly how to do it. One concern I have is some scripts blindly write to invalid addresses like address 0, which is always a crash regardless of changed permissions as far as I know at least for 0, but for now I put in a check that prevents writing to / reading from address 0 specifically. I'm hoping that's good enough, it seems to work fine on my end. Once I can mess with it a bit more and address some other issues I'll make a release with this change.

from luabackend.

Sirius902 avatar Sirius902 commented on September 14, 2024

@MainMemory Oh also I think the Panacea code might need a slight modification, it needed to be section[i].VirtualAddress for me instead of section->VirtualAddress otherwise only the first section's permissions are changed.

VirtualQuery((const void*)(baseImage + section[i].VirtualAddress), &meminf, sizeof(meminf));

from luabackend.

Related Issues (10)

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.