diff options
-rwxr-xr-x | src/ukify/ukify.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ukify/ukify.py b/src/ukify/ukify.py index 0ddf56ae5e..10a464bb1a 100755 --- a/src/ukify/ukify.py +++ b/src/ukify/ukify.py @@ -958,8 +958,9 @@ def inspect_section(opts, section): ttype = config.output_mode if config else DEFAULT_SECTIONS_TO_SHOW.get(name, 'binary') - data = section.get_data(ignore_padding=True) size = section.Misc_VirtualSize + # TODO: Use ignore_padding once we can depend on a newer version of pefile + data = section.get_data(length=size) digest = sha256(data).hexdigest() struct = { |