[diffoscope] 02/10: Ask readelf to decompress sections before dumping their content

Jérémy Bobbio lunar at moszumanska.debian.org
Wed Jan 20 16:11:44 CET 2016


This is an automated email from the git hooks/post-receive script.

lunar pushed a commit to branch master
in repository diffoscope.

commit c351f1ea3b43f0bce8ac5268e7eeff0883ddfbb2
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Wed Jan 20 12:36:50 2016 +0000

    Ask readelf to decompress sections before dumping their content
---
 diffoscope/comparators/elf.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/diffoscope/comparators/elf.py b/diffoscope/comparators/elf.py
index dd9fbdc..d0ac2a9 100644
--- a/diffoscope/comparators/elf.py
+++ b/diffoscope/comparators/elf.py
@@ -130,7 +130,7 @@ class ReadElfSection(Readelf):
         super().__init__(path, *args, **kwargs)
 
     def readelf_options(self):
-        return ['--hex-dump']
+        return ['--decompress', '--hex-dump']
 
     @tool_required('readelf')
     def cmdline(self):
@@ -139,7 +139,7 @@ class ReadElfSection(Readelf):
 
 class ReadelfStringSection(ReadElfSection):
     def readelf_options(self):
-        return ['--string-dump']
+        return ['--decompress', '--string-dump']
 
 class ObjdumpSection(Command):
     def __init__(self, path, section_name, *args, **kwargs):

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git


More information about the diffoscope mailing list