From 2b63b811e00cb41b467061c3ea181951d96babe3 Mon Sep 17 00:00:00 2001 From: Juha Niskanen Date: Thu, 20 Jan 2022 11:44:44 +0200 Subject: [PATCH] libs/libc/misc/lib_execinfo.c: fix bad memory access Signed-off-by: Juha Niskanen --- libs/libc/misc/lib_execinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/libc/misc/lib_execinfo.c b/libs/libc/misc/lib_execinfo.c index bee7f56075..f963aa760c 100644 --- a/libs/libc/misc/lib_execinfo.c +++ b/libs/libc/misc/lib_execinfo.c @@ -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;