diff options
author | Stefan Weil <sw@weilnetz.de> | 2014-02-01 09:41:09 +0100 |
---|---|---|
committer | Edgar E. Iglesias <edgar.iglesias@xilinx.com> | 2014-02-03 14:04:00 +0000 |
commit | 8cfc114a2f293c40077d1bdb7500b29db359ca22 (patch) | |
tree | d163485fcf207ee596738d1e3fe2260fe3aa54b5 /qobject/json-lexer.c | |
parent | ce603d8ef11f2a2d29be1c4f90d417331b41acfc (diff) | |
download | hqemu-8cfc114a2f293c40077d1bdb7500b29db359ca22.zip hqemu-8cfc114a2f293c40077d1bdb7500b29db359ca22.tar.gz |
linux-user: Fix trampoline code for CRIS
__put_user can write bytes, words (2 bytes) or longwords (4 bytes).
Here obviously words should have been written, but bytes were written,
so values like 0x9c5f were truncated to 0x5f.
Fix this by changing retcode from uint8_t to to uint16_t in
target_signal_frame and also in the unused rt_signal_frame.
This problem was reported by static code analysis (smatch).
Cc: qemu-stable@nongnu.org
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Acked-by: Riku Voipio <riku.voipio@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Diffstat (limited to 'qobject/json-lexer.c')
0 files changed, 0 insertions, 0 deletions