libs/libc/misc/lib_execinfo.c: fix bad memory access

Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
This commit is contained in:
Juha Niskanen 2022-01-20 11:44:44 +02:00 committed by Xiang Xiao
parent 64dd669749
commit 2b63b811e0
1 changed files with 1 additions and 1 deletions

View File

@ -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;