decompals / wibo

Quick-and-dirty wrapper that tries to run 32-bit Windows command-line executables on Linux
MIT License
57 stars 19 forks source link

Force VirtualAlloc allocations to fall below the 2GB mark #36

Closed ConorBobbleHat closed 1 year ago

ConorBobbleHat commented 1 year ago

As per the title. Fixes #21.

Right now, this takes the simplest (if brute force-iest) approach: it maps the upper 2GB of program memory to ensure libc can't allocate anything there.

(If it turns out this breaks anything, happy to switch this out for a smarter option :))