openocd/src/rtos
Sebastiaan de Schaetzen 013a0e88d2 rtos/riot: fix out-of-bounds writes when target is corrupted
This protects against out-of-bounds writes when the memory
of RIOT's scheduler is corrupted.
This memory can be corrupted because of:
 - Programming errors
 - The scheduler not yet having been initialised
 - An incorrect symbol file being used during debugging.

This error can result in OpenOCD segfaulting. Valgrind was
used to find the approximate location of the error.

Change-Id: I60e7d7c245b8c4e38f4c98cb0c0347a9b5ec3177
Signed-off-by: Sebastiaan de Schaetzen <sebastiaan.de.schaetzen@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/6381
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
2021-08-22 20:21:47 +00:00
..
chibios.c openocd: remove NULL comparisons with checkpatch [1/2] 2021-07-24 10:38:00 +01:00
chromium-ec.c rtos: rename CamelCase symbols 2021-07-02 17:11:13 +01:00
eCos.c openocd: remove NULL comparisons with checkpatch [1/2] 2021-07-24 10:38:00 +01:00
embKernel.c openocd: fix Yoda conditions with checkpatch 2021-07-24 10:38:31 +01:00
FreeRTOS.c openocd: remove NULL comparisons with checkpatch [1/2] 2021-07-24 10:38:00 +01:00
hwthread.c openocd: remove NULL comparisons with checkpatch [1/2] 2021-07-24 10:38:00 +01:00
linux_header.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
linux.c openocd: remove NULL comparisons with checkpatch [1/2] 2021-07-24 10:38:00 +01:00
Makefile.am rtos: Add support for Zephyr RTOS 2021-05-11 10:43:22 +01:00
mqx.c openocd: fix Yoda conditions with checkpatch 2021-07-24 10:38:31 +01:00
nuttx_header.h rtos: add support for NuttX 2018-08-01 14:33:50 +01:00
nuttx.c openocd: remove NULL comparisons with checkpatch [1/2] 2021-07-24 10:38:00 +01:00
riot.c rtos/riot: fix out-of-bounds writes when target is corrupted 2021-08-22 20:21:47 +00:00
rtos_chibios_stackings.c rtos: support gdb_get_register_packet 2018-10-16 11:58:03 +01:00
rtos_chibios_stackings.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
rtos_ecos_stackings.c rtos/eCos: rename CamelCase symbols 2021-07-02 17:11:30 +01:00
rtos_ecos_stackings.h rtos/eCos: rename CamelCase symbols 2021-07-02 17:11:30 +01:00
rtos_embkernel_stackings.c rtos: rename CamelCase symbols 2021-07-02 17:11:13 +01:00
rtos_embkernel_stackings.h rtos: rename CamelCase symbols 2021-07-02 17:11:13 +01:00
rtos_mqx_stackings.c coding style: fix space separation 2020-07-08 22:08:08 +01:00
rtos_mqx_stackings.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
rtos_riot_stackings.c rtos: rename CamelCase symbols 2021-07-02 17:11:13 +01:00
rtos_riot_stackings.h rtos: add support for RIOT 2020-07-26 20:11:52 +01:00
rtos_standard_stackings.c rtos: rename CamelCase symbols 2021-07-02 17:11:13 +01:00
rtos_standard_stackings.h rtos: rename CamelCase symbols 2021-07-02 17:11:13 +01:00
rtos_ucos_iii_stackings.c rtos: rename CamelCase symbols 2021-07-02 17:11:13 +01:00
rtos_ucos_iii_stackings.h rtos: rename CamelCase symbols 2021-07-02 17:11:13 +01:00
rtos.c rtos: add debug prints for qSymbol lookup 2021-08-14 13:29:06 +01:00
rtos.h Add RTOS memory read/write functions. 2021-07-02 17:13:52 +01:00
ThreadX.c openocd: remove NULL comparisons with checkpatch [1/2] 2021-07-24 10:38:00 +01:00
uCOS-III.c openocd: remove NULL comparisons with checkpatch [1/2] 2021-07-24 10:38:00 +01:00
zephyr.c rtos: zephyr: add zephyr_params for cortex r4 2021-07-31 10:10:00 +01:00