DebugSectionDescriptor.size initialized with decompressed section size (#339)
authorSeva Alekseyev <sevaa@yarxi.ru>
Tue, 27 Oct 2020 12:36:46 +0000 (08:36 -0400)
committerGitHub <noreply@github.com>
Tue, 27 Oct 2020 12:36:46 +0000 (05:36 -0700)
elftools/elf/elffile.py

index e6cf7c26824c042e4ff4b0ac7eea2d3df8b9bf11..011a16fae1c11ac7e33e35d38d2ed29fb1f1cf28 100644 (file)
@@ -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