From 8f2193f35a05507788e17a1480c3620be8e9c4ac Mon Sep 17 00:00:00 2001 From: Jeremy Rifkin <51220084+jeremy-rifkin@users.noreply.github.com> Date: Thu, 13 Feb 2025 23:47:16 -0600 Subject: [PATCH] Fix handling of strtab in a code path in the elf code --- src/binary/elf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/binary/elf.cpp b/src/binary/elf.cpp index 924bbad..17c13cb 100644 --- a/src/binary/elf.cpp +++ b/src/binary/elf.cpp @@ -161,7 +161,7 @@ namespace detail { std::vector res; for(const auto& entry : info.entries) { res.push_back({ - strtab.unwrap().data() + entry.st_name, + strtab.has_value() ? strtab.unwrap().data() + entry.st_name : "", entry.st_shndx, entry.st_value, entry.st_size