SDL/include
Frank Praznik 9bdb992925 wayland: Allocate the cursor shared memory buffer entirely in memory, if possible.
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.
2024-03-12 20:54:55 -04:00
..
SDL3 Re-added balls to the SDL joystick API 2024-03-10 21:30:14 -07:00
build_config wayland: Allocate the cursor shared memory buffer entirely in memory, if possible. 2024-03-12 20:54:55 -04:00