On perjantaina 11. syyskuuta 2015 13.59.29 EEST, Peter Maydell wrote:
On 6 September 2015 at 00:56, Timothy E Baldwin
<t.e.baldwi...@members.leeds.ac.uk> wrote:
Check array bounds in host_to_target_errno() and target_to_host_errno().
Signed-off-by: Timothy Edward Baldwin <t.e.baldwi...@members.leeds.ac.uk>
---
linux-user/syscall.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-) ...
Maybe we should also check that the passed in error value is
not negative? (Given the errno-is-positive/syscall-return-negative
conventions, it's an easy mistake to make...)
I've applied a version of this patch that implements this by setting the
function argument to unsigned
Riku