riscv-openocd/src
Antonio Borneo 8edfdb02ed rtos: chibios: fix version display
The field 'struct chibios_chdebug::ch_version' is 16 bits wide, so
using le_to_h_u32() and be_to_h_u32() overflows in the following
fields of the struct.

Restrict the endianness conversion to 16 bits and use the target
endianness dependent target_buffer_get_u16().
Convert the 'struct chibios_chdebug::ch_version' to an array of
uint8_t.

Change-Id: Iaa80e9cb1a65c27512919398b8ffbf14e5c240cd
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/8473
Tested-by: jenkins
2024-10-05 15:38:23 +00:00
..
flash flash/nor/atsame5: add PIC32CX-SG device IDs 2024-10-01 04:00:05 +00:00
helper binarybuffer: Invert buf_cmp* return value and rename to buf_eq* 2024-09-21 09:04:06 +00:00
jtag binarybuffer: Invert buf_cmp* return value and rename to buf_eq* 2024-09-21 09:04:06 +00:00
pld pld/intel: remove idcodes from intel.c 2024-06-15 14:25:05 +00:00
rtos rtos: chibios: fix version display 2024-10-05 15:38:23 +00:00
rtt rtt: default the ID to "SEGGER RTT" 2024-08-25 12:43:22 +00:00
server server/telnet: Restructure commands 2024-09-21 09:05:36 +00:00
svf binarybuffer: Invert buf_cmp* return value and rename to buf_eq* 2024-09-21 09:04:06 +00:00
target aarch64: Invalidate caches on reset 2024-09-21 09:01:16 +00:00
transport transport: Remove echo in transport selection 2024-08-02 16:08:32 +00:00
xsvf openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
Makefile.am configure: Use pkg-config for jimtcl 2024-08-02 15:59:07 +00:00
hello.c hello: include hello.h 2023-05-18 10:13:41 +00:00
hello.h openocd: src: replace the GPL-2.0-or-later license tag 2022-07-23 13:59:13 +00:00
main.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
openocd.c openocd: rewrite command 'version' as COMMAND_HANDLER 2023-03-25 18:10:54 +00:00
openocd.h openocd: src: replace the GPL-2.0-or-later license tag 2022-07-23 13:59:13 +00:00