From fe2b6b35e72d48d2a7aebc0fb1e2b0cb28aa1f4a Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 11 Mar 2023 13:20:41 +0000 Subject: [PATCH] file: Show error when a file has no symbol table Signed-off-by: Michael Tremer --- src/libpakfire/file.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libpakfire/file.c b/src/libpakfire/file.c index a3a89b12b..ef54fa569 100644 --- a/src/libpakfire/file.c +++ b/src/libpakfire/file.c @@ -1524,8 +1524,10 @@ static int __pakfire_file_hardening_check_ssp( // Walk through all sections for (;;) { section = elf_nextscn(elf, section); - if (!section) + if (!section) { + ERROR(file->pakfire, "%s has no symbol table\n", file->path); return 1; + } // Fetch the section header gelf_getshdr(section, §ion_header); -- 2.47.3