From e5ed0eee289e65253a65452ea5c7cd282a05e918 Mon Sep 17 00:00:00 2001 From: Seva Alekseyev Date: Tue, 27 Oct 2020 08:36:46 -0400 Subject: [PATCH] DebugSectionDescriptor.size initialized with decompressed section size (#339) --- elftools/elf/elffile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elftools/elf/elffile.py b/elftools/elf/elffile.py index e6cf7c2..011a16f 100644 --- a/elftools/elf/elffile.py +++ b/elftools/elf/elffile.py @@ -689,7 +689,7 @@ class ELFFile(object): stream=section_stream, name=section.name, global_offset=section['sh_offset'], - size=section['sh_size'], + size=section._decompressed_size, address=section['sh_addr']) @staticmethod -- 2.30.2