Files
betterxen/crates/loader/tests
Adeeb Rahman 093ef7ba66 Fault the guest instead of the host on oversized strncpy and XInput pointers
strncpy and wcsncpy allocated the whole guest-supplied count for the
zero padding, so an all-ones count aborted the host. The padding is now
written in bounded chunks and faults at the first unwritable byte.
XInputSetState computed the second motor's address before checking the
first read, which overflowed for a pointer at the top of the address
space; the vibration struct is now read as one DWORD. Both were found
by the runtime_services fuzz replay after merging main.

Signed-off-by: Adeeb Rahman <therealabeeb@icloud.com>
2026-11-24 20:13:40 -05:00
..