Skip to content
Commit 3f78ca98 authored by François Baldassari's avatar François Baldassari Committed by Fabio Baltieri
Browse files

ARC: fault: Fix uninitialized memory access



Found via static analysis. In fault path when checking for stack
overflows, if CONFIG_MULTITHREADING is not set, `guard_end` is left
uninitialized and is subsequently used in a comparison.

The solution is to simply return `false` in this configuration as stack
guards are not configured in the first place.

Signed-off-by: default avatarFrançois Baldassari <francois@memfault.com>
parent 6837ca80
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment