Git Product home page Git Product logo

Comments (8)

SnowyMouse avatar SnowyMouse commented on August 22, 2024

This should be fixed! I had to reimplement this function using a workaround that was actually written on the official Microsoft docs. To my knowledge, this should work (though Wine's Windows XP emulation may or may not be accurate). Give it a try and let me know.

A bit of a warning - The SetProcessDEPPolicy function was added in Windows Vista. Because DEP doesn't exist on Windows XP, this does mean you run the risk of an arbitrary code execution exploit given a carefully crafted cache file (with DEP enabled, the process exits if it tries to execute memory not marked as executable). Because no one has been known to exploit this, you're probably fine.

from chimera.

Aerocatia avatar Aerocatia commented on August 22, 2024

Because DEP doesn't exist on Windows XP

This is incorrect, DEP was added to Windows XP in service pack 2.

from chimera.

SnowyMouse avatar SnowyMouse commented on August 22, 2024

This is incorrect, DEP was added to Windows XP in service pack 2.

My bad. Or should I say... Microsoft's bad.

According to their documentation, it appears the function for enabling DEP on an existing 32-bit process was added in SP3.

Also, they state you should use a macro to indicate Vista (0x0600) support, not XP SP3 (0x5030). This gave me the wrong impression.

Source: https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-setprocessdeppolicy

from chimera.

xanderbattaglia avatar xanderbattaglia commented on August 22, 2024

This should be fixed! I had to reimplement this function using a workaround that was actually written on the official Microsoft docs. To my knowledge, this should work (though Wine's Windows XP emulation may or may not be accurate). Give it a try and let me know.

A bit of a warning - The SetProcessDEPPolicy function was added in Windows Vista. Because DEP doesn't exist on Windows XP, this does mean you run the risk of an arbitrary code execution exploit given a carefully crafted cache file (with DEP enabled, the process exits if it tries to execute memory not marked as executable). Because no one has been known to exploit this, you're probably fine.

I just tried this out on a real Windows XP SP3 Machine - and there was some success :)
It now shows up a different Kernel32.dll missing error: "GetTickCount64 could not be located..."
Winxpstill
So it would appear there are multiple post-windowsxp dependencies there. So close!

from chimera.

SnowyMouse avatar SnowyMouse commented on August 22, 2024

After a bit of investigation, this appears to be the winpthreads library, not Chimera.

This can probably be worked around by recompiling the library with the Windows XP target (since it appears to have some #ifdefs for this), although getting this to work with Chimera via static linking (and not dynamic linking which would impact the single-DLL installation) may be a bit of a challenge.

from chimera.

xanderbattaglia avatar xanderbattaglia commented on August 22, 2024

After a bit of investigation, this appears to be the winpthreads library, not Chimera.

This can probably be worked around by recompiling the library with the Windows XP target (since it appears to have some #ifdefs for this), although getting this to work with Chimera via static linking (and not dynamic linking which would impact the single-DLL installation) may be a bit of a challenge.

Thanks for taking a deeper look into this again / if you do manage to take the time to recompile the library with that XP target - I will give it another test

from chimera.

SnowyMouse avatar SnowyMouse commented on August 22, 2024

Sorry this has taken me a while. I've been working on so much stuff these past couple of weeks! Goodness.

Anyway, a solution is being worked on! However, it may require making an alternative build of Chimera that depends on an external DLL, as maintaining two separate toolchains - one that builds for XP and one that builds for modern versions of Windows - is a bit of a hassle, and I want to distribute Chimera with as few DLLs as possible due to a history of people utterly messing up installation.

from chimera.

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.