libbacktrace: avoid infinite recursion (febbb9b)

This commit is contained in:
Bartosz Taudul 2024-08-24 18:02:05 +02:00
parent 12c8592325
commit 0d0e56dca3
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -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) && strcmp (name, ".gnu_debugdata") == 0)
{ {
if (!elf_get_view (state, descriptor, memory, memory_size, if (!elf_get_view (state, descriptor, memory, memory_size,