libs/libc/misc/lib_execinfo.c: fix bad memory access
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
This commit is contained in:
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;
|
||||
|
|
Loading…
Reference in New Issue