mirror of
https://github.com/FEX-Emu/FEX.git
synced 2025-02-07 15:09:05 +00:00
c5ffc0664d
We are required in our syscall emulation to handle cases where pointers are invalid. This means we need to pessimistically assume a memcpy will fault when reading application memory. This implements a signal handler based approach to catching the SIGSEGV on memcpy and returning an EFAULT if it faults.