FreeRTOS-Kernel/FreeRTOS-Plus/Source
Gaurav-Aggarwal-AWS 1e8d541ed4
Fix stack smashing in POSIX Demo (#901)
The tracelyzer code was declaring a local stack variable of type
`uint32_t` and passing it as output parameter to a function which
expected `uint64_t` on a 64-bit platform. This resulted in 4 byte memory
corruption. The problem was that the function signature uses
`TraceUnsignedBaseType_t` type for the output parameter which gets
defined to `uint32_t` on a 32-bit platform and to `uint64_t` on a 64-bit
platform, while the local stack variable was declared as `uint32_t`.
This commit changes the type of local stack variable to
`TraceUnsignedBaseType_t` to match the function parameter type.

Tracelyzer creates a task internally stack size of which is controlled
using TRC_CFG_CTRL_TASK_STACK_SIZE. It was earlier defined to 1024.
The POSIX port requires the stack size to be minimum PTHREAD_STACK_MIN.
The commit updates the TRC_CFG_CTRL_TASK_STACK_SIZE to
PTHREAD_STACK_MIN.

The demo directory contained one extra trcConfig.h and
trcKernelPortConfig.h. This commit deletes those files.

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
2022-12-15 19:21:55 +05:30
..
Application-Protocols [AUTO][RELEASE]: Bump file header version to "202212.00" 2022-12-10 01:17:30 +00:00
AWS FreeRTOS Windows Simulator Build Changes and LTS 2.0 Update (#872) 2022-11-29 14:21:09 -08:00
coreJSON@5b31f4c37a FreeRTOS Windows Simulator Build Changes and LTS 2.0 Update (#872) 2022-11-29 14:21:09 -08:00
corePKCS11@781f577494 FreeRTOS Windows Simulator Build Changes and LTS 2.0 Update (#872) 2022-11-29 14:21:09 -08:00
FreeRTOS-Cellular-Interface@0c6eae0340 Update cellular interface to v1.3.0. 2022-10-19 15:18:21 -07:00
FreeRTOS-Cellular-Modules Update cellular submodules 2022-10-19 15:18:21 -07:00
FreeRTOS-Plus-CLI Apply release changes to main branch (#759) 2021-12-23 10:16:27 -08:00
FreeRTOS-Plus-IO Add FreeRTOS-Plus directory with new directory structure so it matches the FreeRTOS directory. 2013-04-18 09:17:05 +00:00
FreeRTOS-Plus-TCP@0bf460c935 FreeRTOS Windows Simulator Build Changes and LTS 2.0 Update (#872) 2022-11-29 14:21:09 -08:00
FreeRTOS-Plus-Trace Fix stack smashing in POSIX Demo (#901) 2022-12-15 19:21:55 +05:30
Reliance-Edge Update Reliance Edge fail safe file system to the latest version. 2017-01-24 00:20:35 +00:00
Utilities [AUTO][RELEASE]: Bump file header version to "202212.00" 2022-12-10 01:17:30 +00:00
WebDocs.url Add FreeRTOS-Plus directory with new directory structure so it matches the FreeRTOS directory. 2013-04-18 09:17:05 +00:00