From 0d0e56dca317744a88df988f896ed7d59e253ac8 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 24 Aug 2024 18:02:05 +0200 Subject: [PATCH] libbacktrace: avoid infinite recursion (febbb9b) --- public/libbacktrace/elf.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/libbacktrace/elf.cpp b/public/libbacktrace/elf.cpp index 3ed34c70..321146b7 100644 --- a/public/libbacktrace/elf.cpp +++ b/public/libbacktrace/elf.cpp @@ -6860,7 +6860,8 @@ elf_add (struct backtrace_state *state, const char *filename, int descriptor, } } - if (!gnu_debugdata_view_valid + if (!debuginfo + && !gnu_debugdata_view_valid && strcmp (name, ".gnu_debugdata") == 0) { if (!elf_get_view (state, descriptor, memory, memory_size,