mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-14 07:00:43 +02:00
The syscall is defined as taking in an array, so we can construct the std::vector in place and surround it. This also fixes an edge case where an out of bounds access on the Host_iovec vectors could occur if these syscalls were called with an iovcnt of zero (.at would cause an exception to be thrown). Looking into the syscalls for readv and writev, these just return early if a size of zero is passed in.