mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 09:18:00 +08:00
libs/libc/misc/lib_execinfo.c: fix bad memory access
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
This commit is contained in:
committed by
Xiang Xiao
parent
64dd669749
commit
2b63b811e0
@@ -67,7 +67,7 @@ FAR char **backtrace_symbols(FAR void *const *buffer, int size)
|
||||
syms = backtrace_malloc(buffer, size);
|
||||
if (syms != NULL)
|
||||
{
|
||||
buf = syms[size];
|
||||
buf = (FAR char *)&syms[size];
|
||||
for (i = 0; i < size; i++)
|
||||
{
|
||||
syms[i] = buf;
|
||||
|
||||
Reference in New Issue
Block a user