Replace field access with property name access
authorEli Bendersky <eliben@gmail.com>
Tue, 27 Oct 2020 12:39:37 +0000 (05:39 -0700)
committerEli Bendersky <eliben@gmail.com>
Tue, 27 Oct 2020 12:39:37 +0000 (05:39 -0700)
elftools/elf/elffile.py

index 011a16fae1c11ac7e33e35d38d2ed29fb1f1cf28..6a00e0a03b2ecebecb3b876a8c173dad34c44c83 100644 (file)
@@ -689,7 +689,7 @@ class ELFFile(object):
                 stream=section_stream,
                 name=section.name,
                 global_offset=section['sh_offset'],
-                size=section._decompressed_size,
+                size=section.data_size,
                 address=section['sh_addr'])
 
     @staticmethod