These patches fix a couple of issues with handling edge cases in our linux-user msgrcv implementation: * we weren't dealing with negative msgsz correctly (should fail EINVAL) * we were using g_malloc() rather than g_try_malloc() for an allocatino whose size is controlled by the guest
(Both these were already handled correctly for msgsnd.) This fixes a hang in the Linux Test Project msgrcv03 test case. Peter Maydell (2): linux-user: Handle msgrcv error case correctly linux-user: Use g_try_malloc() in do_msgrcv() linux-user/syscall.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) -- 1.9.1