linux-user: fix signal number range check
commit167c50d8f94e0ffb880aa5cd2a232a3f32f0df1d
authorAndreas Schwab <schwab@linux-m68k.org>
Tue, 2 Jul 2013 13:04:12 +0000 (2 14:04 +0100)
committerRiku Voipio <riku.voipio@linaro.org>
Fri, 5 Jul 2013 12:45:40 +0000 (5 15:45 +0300)
treeadec4f2495cc7c36b906e76ae77752ddd9b74e58
parent7ff7b666186a86f0121e6e7db6784222cefe22a2
linux-user: fix signal number range check

When translating between host and target signal numbers keep negative
numbers unchanged, avoiding access beyond array bounds.

Signed-off-by: Andreas Schwab <schwab@linux-m68k.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 878v2b8sek.fsf@igel.home
linux-user/signal.c