mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-23 11:00:48 +02:00
We were dereferencing the shmun ptr instead of using it directly. Resulting in an almost immediate crash Additionally IPC_SET doesn't write back to the shmid_ds provided. Additional still SHM_STATE/SHM_STAT_ANY/IPC_STAT wasn't writing its result back to the guest. Resulting in invalid stat information for the guest. Additionally SHM_INFO doesn't follow IPC64 behaviour since there is no shm_info 64-bit type for a 32-bit OS. The kernel just truncates the results in this case. Could be an oversight on the kernel dev's side? Fixes #1252