Giter VIP home page Giter VIP logo

Comments (6)

alabuzhev avatar alabuzhev commented on June 11, 2024

@michaellukashov fyi

from farmanager.

ssvine avatar ssvine commented on June 11, 2024

Far has a problem here because it never calls FreeLibrary. So any plugin that undergoes far.ForcedLoadPlugin / far.UnloadPlugin won't be unloaded from the address space of the process (DllMain of the plugin will get exactly one DLL_PROCESS_ATTACH at the first load and one DLL_PROCESS_DETACH at the Far termination).

This results in global / static local variables not being cleared on reload. So it's worth fixing this on Far's side.

from farmanager.

alabuzhev avatar alabuzhev commented on June 11, 2024

it never calls FreeLibrary

image

from farmanager.

alabuzhev avatar alabuzhev commented on June 11, 2024

NetBox/libs/openssl-3/crypto/init.c:

        ret = GetModuleHandleEx(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS
                                | GET_MODULE_HANDLE_EX_FLAG_PIN,
                                (void *)&base_inited, &handle);

image

I hope it is obvious what is going on.

If you want FreeLibrary to work, you need to tell OpenSSL to stop pinning the whole thing by defining OPENSSL_NO_PINSHARED.

from farmanager.

ssvine avatar ssvine commented on June 11, 2024

it never calls FreeLibrary

I made that quick assumption just by observing DllMain calls and an obvious case that LoadLibrary / FreeLibrary should work normal. That was wrong. So, it's time to look at Far's sources more thoroughly ;)

@alabuzhev thanks for you time.

from farmanager.

alabuzhev avatar alabuzhev commented on June 11, 2024

3.0.6304 comes with a fixed NetBox.

from farmanager.

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.