Hi, Updated to cover the overflow case properly as well.
Alex Bennée (2): linux-user/mmap.c: handle invalid len maps correctly tests: add check_invalid_maps to test-mmap linux-user/mmap.c | 15 ++++++++++++--- tests/tcg/multiarch/test-mmap.c | 22 +++++++++++++++++++++- 2 files changed, 33 insertions(+), 4 deletions(-) -- 2.17.1 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1783362 Title: qemu-user: mmap should return failure (MAP_FAILED, -1) instead of success (NULL, 0) when len==0 To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1783362/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
