commit | 962b289ef35087fcd8764e4e29808d8ac90157f7 | [log] [tgz] |
---|---|---|
author | Alexander Graf <agraf@suse.de> | Mon Nov 21 12:04:07 2011 +0100 |
committer | Riku Voipio <riku.voipio@linaro.org> | Thu Feb 02 17:51:20 2012 +0200 |
tree | 01641e19658a15ae9861350a18273b580c0faccc | |
parent | 583359a68922fb91b793a5ad3a2dd4536bf9b99e [diff] |
linux-user: fix QEMU_STRACE=1 segfault While debugging some issues with QEMU_STRACE I stumbled over segmentation faults that were pretty reproducible. Turns out we tried to treat a normal return value as errno, resulting in an access over array boundaries for the resolution. Fix this by allowing failure to resolve invalid errnos into strings. Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>