9bdb992925
Use memfd_create() to allocate the temporary SHM backing file in memory, and set the size with posix_fallocate(), which will return an error on insufficient space vs ftruncate(), which will silently succeed and allow a SIGBUS error to occur if the unbacked memory is accessed. Additionally, make the legacy path more robust by unlinking the temp file, so it won't persist after close, and unmapping the shared memory buffer. |
||
---|---|---|
.. | ||
SDL_build_config.h | ||
SDL_build_config.h.cmake | ||
SDL_build_config_android.h | ||
SDL_build_config_emscripten.h | ||
SDL_build_config_ios.h | ||
SDL_build_config_macos.h | ||
SDL_build_config_minimal.h | ||
SDL_build_config_ngage.h | ||
SDL_build_config_windows.h | ||
SDL_build_config_wingdk.h | ||
SDL_build_config_winrt.h | ||
SDL_build_config_xbox.h | ||
SDL_revision.h.cmake |