« Previous | Next » 

Revision 8cfc114a

ID8cfc114a2f293c40077d1bdb7500b29db359ca22

Added by Stefan Weil about 10 years ago

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:
Signed-off-by: Stefan Weil <>
Acked-by: Riku Voipio <>
Reviewed-by: Peter Maydell <>
Tested-by: Edgar E. Iglesias <>
Reviewed-by: Edgar E. Iglesias <>
Signed-off-by: Edgar E. Iglesias <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences