Source: androguard Version: 3.1.0~rc1-1 Severity: serious https://buildd.debian.org/status/package.php?p=androguard&suite=sid
... debian/rules override_dh_auto_test make[1]: Entering directory '/<<PKGBUILDDIR>>' nosetests3 --with-timer --timer-top-n 50 .........................EE.E..FFFEEEE....FF.EEEEEE.E.EEESEE..EEEEEEE.S ====================================================================== ERROR: testAPK (test_analysis.AnalysisTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/tests/test_analysis.py", line 19, in testAPK a, d, dx = AnalyzeAPK("examples/tests/a2dp.Vol_137.apk") File "/<<PKGBUILDDIR>>/androguard/misc.py", line 52, in AnalyzeAPK digest = session.add(filename, data) File "/<<PKGBUILDDIR>>/androguard/session.py", line 166, in add _, d, dx = self.addDEX(filename, dex, dx) File "/<<PKGBUILDDIR>>/androguard/session.py", line 100, in addDEX d = DalvikVMFormat(data) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7525, in __init__ self._load(buff) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7536, in _load self.map_list = MapList(self.CM, self.__header.map_off, self) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7406, in __init__ self.size = unpack("=I", buff.read(4))[0] struct.error: unpack requires a buffer of 4 bytes -------------------- >> begin captured logging << -------------------- root: INFO: Generating grammar tables from /usr/lib/python3.6/lib2to3/Grammar.txt root: INFO: Generating grammar tables from /usr/lib/python3.6/lib2to3/PatternGrammar.txt androguard.misc: DEBUG: AnalyzeAPK androguard.session: DEBUG: add APK:fb913cccb0957c5b52caea48c3ef7a3ce1d616219b47eed65482097920fe8cc5 androguard.session: DEBUG: added APK:fb913cccb0957c5b52caea48c3ef7a3ce1d616219b47eed65482097920fe8cc5 androguard.session: DEBUG: add DEX:1f2ca89075a9b985f9f8209eae7bc4d160b4502ff45352c517f3565bebe18738 androguard.session: DEBUG: Parsing format ... --------------------- >> end captured logging << --------------------- ====================================================================== ERROR: testDex (test_analysis.AnalysisTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/tests/test_analysis.py", line 14, in testDex d = dvm.DalvikVMFormat(fd.read()) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7525, in __init__ self._load(buff) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7536, in _load self.map_list = MapList(self.CM, self.__header.map_off, self) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7406, in __init__ self.size = unpack("=I", buff.read(4))[0] struct.error: unpack requires a buffer of 4 bytes ====================================================================== ERROR: testAPKActivitiesAreString (test_apk.APKTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/tests/test_apk.py", line 181, in testAPKActivitiesAreString self.assertTrue(isinstance(activities[0], str), 'activities[0] is not of type str') IndexError: list index out of range ====================================================================== ERROR: testAPKWrapper (test_apk.APKTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/tests/test_apk.py", line 20, in testAPKWrapper a, d, dx = AnalyzeAPK("examples/android/TestsAndroguard/bin/TestActivity.apk") File "/<<PKGBUILDDIR>>/androguard/misc.py", line 52, in AnalyzeAPK digest = session.add(filename, data) File "/<<PKGBUILDDIR>>/androguard/session.py", line 166, in add _, d, dx = self.addDEX(filename, dex, dx) File "/<<PKGBUILDDIR>>/androguard/session.py", line 100, in addDEX d = DalvikVMFormat(data) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7525, in __init__ self._load(buff) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7536, in _load self.map_list = MapList(self.CM, self.__header.map_off, self) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7406, in __init__ self.size = unpack("=I", buff.read(4))[0] struct.error: unpack requires a buffer of 4 bytes -------------------- >> begin captured logging << -------------------- androguard.misc: DEBUG: AnalyzeAPK androguard.session: DEBUG: add APK:3bb32dd50129690bce850124ea120aa334e708eaa7987cf2329fd1ea0467a0eb androguard.session: DEBUG: added APK:3bb32dd50129690bce850124ea120aa334e708eaa7987cf2329fd1ea0467a0eb androguard.session: DEBUG: add DEX:2f24538b3064f1f88d3eb29ee7fbd2146779a4c9144aefa766d18965be8775c7 androguard.session: DEBUG: Parsing format ... --------------------- >> end captured logging << --------------------- ====================================================================== ERROR: testAPKWrapperRaw (test_apk.APKTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/tests/test_apk.py", line 40, in testAPKWrapperRaw a, d, dx = AnalyzeAPK(file_contents, raw=True) File "/<<PKGBUILDDIR>>/androguard/misc.py", line 52, in AnalyzeAPK digest = session.add(filename, data) File "/<<PKGBUILDDIR>>/androguard/session.py", line 166, in add _, d, dx = self.addDEX(filename, dex, dx) File "/<<PKGBUILDDIR>>/androguard/session.py", line 100, in addDEX d = DalvikVMFormat(data) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7525, in __init__ self._load(buff) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7536, in _load self.map_list = MapList(self.CM, self.__header.map_off, self) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7406, in __init__ self.size = unpack("=I", buff.read(4))[0] struct.error: unpack requires a buffer of 4 bytes -------------------- >> begin captured logging << -------------------- androguard.misc: DEBUG: AnalyzeAPK androguard.session: DEBUG: add APK:3bb32dd50129690bce850124ea120aa334e708eaa7987cf2329fd1ea0467a0eb androguard.session: DEBUG: added APK:3bb32dd50129690bce850124ea120aa334e708eaa7987cf2329fd1ea0467a0eb androguard.session: DEBUG: add DEX:2f24538b3064f1f88d3eb29ee7fbd2146779a4c9144aefa766d18965be8775c7 androguard.session: DEBUG: Parsing format ... --------------------- >> end captured logging << --------------------- ====================================================================== ERROR: testAPKWrapperUnsigned (test_apk.APKTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/tests/test_apk.py", line 124, in testAPKWrapperUnsigned a, d, dx = AnalyzeAPK("examples/android/TestsAndroguard/bin/TestActivity_unsigned.apk") File "/<<PKGBUILDDIR>>/androguard/misc.py", line 52, in AnalyzeAPK digest = session.add(filename, data) File "/<<PKGBUILDDIR>>/androguard/session.py", line 166, in add _, d, dx = self.addDEX(filename, dex, dx) File "/<<PKGBUILDDIR>>/androguard/session.py", line 100, in addDEX d = DalvikVMFormat(data) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7525, in __init__ self._load(buff) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7536, in _load self.map_list = MapList(self.CM, self.__header.map_off, self) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7406, in __init__ self.size = unpack("=I", buff.read(4))[0] struct.error: unpack requires a buffer of 4 bytes -------------------- >> begin captured logging << -------------------- androguard.misc: DEBUG: AnalyzeAPK androguard.session: DEBUG: add APK:3b8de7505527f7df8604f24d64681246904ff9ae23091fc47ae99f62777515b2 androguard.session: DEBUG: added APK:3b8de7505527f7df8604f24d64681246904ff9ae23091fc47ae99f62777515b2 androguard.session: DEBUG: add DEX:2f24538b3064f1f88d3eb29ee7fbd2146779a4c9144aefa766d18965be8775c7 androguard.session: DEBUG: Parsing format ... --------------------- >> end captured logging << --------------------- ====================================================================== ERROR: testMultiDexAPK (test_apk.APKTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/tests/test_apk.py", line 55, in testMultiDexAPK a, d, dx = AnalyzeAPK('examples/android/abcore/app-prod-debug.apk') File "/<<PKGBUILDDIR>>/androguard/misc.py", line 52, in AnalyzeAPK digest = session.add(filename, data) File "/<<PKGBUILDDIR>>/androguard/session.py", line 166, in add _, d, dx = self.addDEX(filename, dex, dx) File "/<<PKGBUILDDIR>>/androguard/session.py", line 100, in addDEX d = DalvikVMFormat(data) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7525, in __init__ self._load(buff) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7536, in _load self.map_list = MapList(self.CM, self.__header.map_off, self) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7406, in __init__ self.size = unpack("=I", buff.read(4))[0] struct.error: unpack requires a buffer of 4 bytes -------------------- >> begin captured logging << -------------------- androguard.misc: DEBUG: AnalyzeAPK androguard.session: DEBUG: add APK:d5e26acca809e9cdfaece18afd8e63c60a26d7b6d566d70bd9f44d6934d5c433 androguard.session: DEBUG: added APK:d5e26acca809e9cdfaece18afd8e63c60a26d7b6d566d70bd9f44d6934d5c433 androguard.session: DEBUG: add DEX:8bd7e9f48a6ed29e4c678633364e8bfd4e6ae76ef3e50c43a5ec3c00eb10a5bc androguard.session: DEBUG: Parsing format ... --------------------- >> end captured logging << --------------------- ====================================================================== ERROR: testAXML (test_axml.AXMLTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/tests/test_axml.py", line 24, in testAXML e = minidom.parseString(ap.get_buff()) File "/usr/lib/python3.6/xml/dom/minidom.py", line 1968, in parseString return expatbuilder.parseString(string) File "/usr/lib/python3.6/xml/dom/expatbuilder.py", line 925, in parseString return builder.parseString(string) File "/usr/lib/python3.6/xml/dom/expatbuilder.py", line 223, in parseString parser.Parse(string, True) xml.parsers.expat.ExpatError: not well-formed (invalid token): line 4, column 15 ====================================================================== ERROR: Test if weird namespace constelations cause problems ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/tests/test_axml.py", line 115, in testDoubleNamespace e = minidom.parseString(ap.get_buff()) File "/usr/lib/python3.6/xml/dom/minidom.py", line 1968, in parseString return expatbuilder.parseString(string) File "/usr/lib/python3.6/xml/dom/expatbuilder.py", line 925, in parseString return builder.parseString(string) File "/usr/lib/python3.6/xml/dom/expatbuilder.py", line 223, in parseString parser.Parse(string, True) xml.parsers.expat.ExpatError: not well-formed (invalid token): line 4, column 15 ====================================================================== ERROR: Test if extra namespaces cause problems ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/tests/test_axml.py", line 51, in testExtraNamespace e = minidom.parseString(ap.get_buff()) File "/usr/lib/python3.6/xml/dom/minidom.py", line 1968, in parseString return expatbuilder.parseString(string) File "/usr/lib/python3.6/xml/dom/expatbuilder.py", line 925, in parseString return builder.parseString(string) File "/usr/lib/python3.6/xml/dom/expatbuilder.py", line 223, in parseString parser.Parse(string, True) xml.parsers.expat.ExpatError: not well-formed (invalid token): line 4, column 15 -------------------- >> begin captured logging << -------------------- androguard.axml: WARNING: Reached a NAMESPACE_END without having the namespace stored before? Prefix ID: 24, URI ID: 25 --------------------- >> end captured logging << --------------------- ====================================================================== ERROR: Assert that Namespaces which are used in a tag and the tag is closed ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/tests/test_axml.py", line 102, in testMaskingNamespace e = minidom.parseString(ap.get_buff()) File "/usr/lib/python3.6/xml/dom/minidom.py", line 1968, in parseString return expatbuilder.parseString(string) File "/usr/lib/python3.6/xml/dom/expatbuilder.py", line 925, in parseString return builder.parseString(string) File "/usr/lib/python3.6/xml/dom/expatbuilder.py", line 223, in parseString parser.Parse(string, True) xml.parsers.expat.ExpatError: not well-formed (invalid token): line 4, column 15 ====================================================================== ERROR: Test if a nonzero style offset in the string section causes problems ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/tests/test_axml.py", line 38, in testNonZeroStyleOffset e = minidom.parseString(ap.get_buff()) File "/usr/lib/python3.6/xml/dom/minidom.py", line 1968, in parseString return expatbuilder.parseString(string) File "/usr/lib/python3.6/xml/dom/expatbuilder.py", line 925, in parseString return builder.parseString(string) File "/usr/lib/python3.6/xml/dom/expatbuilder.py", line 223, in parseString parser.Parse(string, True) xml.parsers.expat.ExpatError: not well-formed (invalid token): line 4, column 15 -------------------- >> begin captured logging << -------------------- androguard.axml: WARNING: Styles Offset given, but styleCount is zero. --------------------- >> end captured logging << --------------------- ====================================================================== ERROR: Assert that Strings with nullbytes are handled correctly ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/tests/test_axml.py", line 88, in testNullbytes e = minidom.parseString(ap.get_buff()) File "/usr/lib/python3.6/xml/dom/minidom.py", line 1968, in parseString return expatbuilder.parseString(string) File "/usr/lib/python3.6/xml/dom/expatbuilder.py", line 925, in parseString return builder.parseString(string) File "/usr/lib/python3.6/xml/dom/expatbuilder.py", line 223, in parseString parser.Parse(string, True) xml.parsers.expat.ExpatError: not well-formed (invalid token): line 4, column 15 ====================================================================== ERROR: Test for Text chunks containing XML ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/tests/test_axml.py", line 64, in testTextChunksWithXML e = minidom.parseString(ap.get_buff()) File "/usr/lib/python3.6/xml/dom/minidom.py", line 1968, in parseString return expatbuilder.parseString(string) File "/usr/lib/python3.6/xml/dom/expatbuilder.py", line 925, in parseString return builder.parseString(string) File "/usr/lib/python3.6/xml/dom/expatbuilder.py", line 223, in parseString parser.Parse(string, True) xml.parsers.expat.ExpatError: not well-formed (invalid token): line 4, column 15 ====================================================================== ERROR: testArrays (test_decompiler.DecompilerTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/tests/test_decompiler.py", line 19, in testArrays h, d, dx = AnalyzeDex("examples/tests/FillArrays.dex") File "/<<PKGBUILDDIR>>/androguard/misc.py", line 74, in AnalyzeDex return session.addDEX(filename, data) File "/<<PKGBUILDDIR>>/androguard/session.py", line 100, in addDEX d = DalvikVMFormat(data) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7525, in __init__ self._load(buff) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7536, in _load self.map_list = MapList(self.CM, self.__header.map_off, self) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7406, in __init__ self.size = unpack("=I", buff.read(4))[0] struct.error: unpack requires a buffer of 4 bytes -------------------- >> begin captured logging << -------------------- androguard.misc: DEBUG: AnalyzeDex androguard.session: DEBUG: add DEX:1edbda9e188f83d5c471f941bed834e95c3446f6cafb9f5612408f14f4536d69 androguard.session: DEBUG: Parsing format ... --------------------- >> end captured logging << --------------------- ====================================================================== ERROR: testSimplification (test_decompiler.DecompilerTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/tests/test_decompiler.py", line 12, in testSimplification h, d, dx = AnalyzeDex("examples/tests/Test.dex") File "/<<PKGBUILDDIR>>/androguard/misc.py", line 74, in AnalyzeDex return session.addDEX(filename, data) File "/<<PKGBUILDDIR>>/androguard/session.py", line 100, in addDEX d = DalvikVMFormat(data) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7525, in __init__ self._load(buff) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7536, in _load self.map_list = MapList(self.CM, self.__header.map_off, self) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7406, in __init__ self.size = unpack("=I", buff.read(4))[0] struct.error: unpack requires a buffer of 4 bytes -------------------- >> begin captured logging << -------------------- androguard.misc: DEBUG: AnalyzeDex androguard.session: DEBUG: add DEX:0e1aa10d9ecfb1cb3781a3f885195f61505e0a4557026a07bd07bf5bd876c951 androguard.session: DEBUG: Parsing format ... --------------------- >> end captured logging << --------------------- ====================================================================== ERROR: Failure: error (unpack requires a buffer of 4 bytes) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3/dist-packages/nose/failure.py", line 39, in runTest raise self.exc_val.with_traceback(self.tb) File "/usr/lib/python3/dist-packages/nose/loader.py", line 251, in generate for test in g(): File "/<<PKGBUILDDIR>>/tests/test_decompiler.py", line 48, in test_all_decompiler a, d, dx = AnalyzeAPK("examples/tests/hello-world.apk") File "/<<PKGBUILDDIR>>/androguard/misc.py", line 52, in AnalyzeAPK digest = session.add(filename, data) File "/<<PKGBUILDDIR>>/androguard/session.py", line 166, in add _, d, dx = self.addDEX(filename, dex, dx) File "/<<PKGBUILDDIR>>/androguard/session.py", line 100, in addDEX d = DalvikVMFormat(data) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7525, in __init__ self._load(buff) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7536, in _load self.map_list = MapList(self.CM, self.__header.map_off, self) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7406, in __init__ self.size = unpack("=I", buff.read(4))[0] struct.error: unpack requires a buffer of 4 bytes -------------------- >> begin captured logging << -------------------- androguard.misc: DEBUG: AnalyzeAPK androguard.session: DEBUG: add APK:f427a0ebe0bca97b9acf6cd2a2a01c37a7d3762841810fc54a7191ec637330b2 androguard.session: DEBUG: added APK:f427a0ebe0bca97b9acf6cd2a2a01c37a7d3762841810fc54a7191ec637330b2 androguard.session: DEBUG: add DEX:70b3c5a89ac353a9a395092b9f4a8cf74f5463972dc0144f3bec29a1796feb2c androguard.session: DEBUG: Parsing format ... --------------------- >> end captured logging << --------------------- ====================================================================== ERROR: testDex (test_dex.DexTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/tests/test_dex.py", line 12, in testDex d = dvm.DalvikVMFormat(fd.read()) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7525, in __init__ self._load(buff) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7536, in _load self.map_list = MapList(self.CM, self.__header.map_off, self) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7406, in __init__ self.size = unpack("=I", buff.read(4))[0] struct.error: unpack requires a buffer of 4 bytes ====================================================================== ERROR: testDexWrapper (test_dex.DexTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/tests/test_dex.py", line 31, in testDexWrapper h, d, dx = AnalyzeDex("examples/android/TestsAndroguard/bin/classes.dex") File "/<<PKGBUILDDIR>>/androguard/misc.py", line 74, in AnalyzeDex return session.addDEX(filename, data) File "/<<PKGBUILDDIR>>/androguard/session.py", line 100, in addDEX d = DalvikVMFormat(data) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7525, in __init__ self._load(buff) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7536, in _load self.map_list = MapList(self.CM, self.__header.map_off, self) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7406, in __init__ self.size = unpack("=I", buff.read(4))[0] struct.error: unpack requires a buffer of 4 bytes -------------------- >> begin captured logging << -------------------- androguard.misc: DEBUG: AnalyzeDex androguard.session: DEBUG: add DEX:2f24538b3064f1f88d3eb29ee7fbd2146779a4c9144aefa766d18965be8775c7 androguard.session: DEBUG: Parsing format ... --------------------- >> end captured logging << --------------------- ====================================================================== ERROR: testcode (test_dexcodeparsing.TestDexCodeParsing) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/tests/test_dexcodeparsing.py", line 19, in testcode d = DalvikVMFormat(f.read()) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7525, in __init__ self._load(buff) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7536, in _load self.map_list = MapList(self.CM, self.__header.map_off, self) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7406, in __init__ self.size = unpack("=I", buff.read(4))[0] struct.error: unpack requires a buffer of 4 bytes ====================================================================== ERROR: testMethodRename (test_rename.RenameTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/tests/test_rename.py", line 11, in testMethodRename d = dvm.DalvikVMFormat(fd.read()) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7525, in __init__ self._load(buff) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7536, in _load self.map_list = MapList(self.CM, self.__header.map_off, self) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7406, in __init__ self.size = unpack("=I", buff.read(4))[0] struct.error: unpack requires a buffer of 4 bytes ====================================================================== ERROR: testSessionAPK (test_session.SessionTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/tests/test_session.py", line 26, in testSessionAPK fd.read()) File "/<<PKGBUILDDIR>>/androguard/session.py", line 166, in add _, d, dx = self.addDEX(filename, dex, dx) File "/<<PKGBUILDDIR>>/androguard/session.py", line 100, in addDEX d = DalvikVMFormat(data) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7525, in __init__ self._load(buff) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7536, in _load self.map_list = MapList(self.CM, self.__header.map_off, self) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7406, in __init__ self.size = unpack("=I", buff.read(4))[0] struct.error: unpack requires a buffer of 4 bytes -------------------- >> begin captured logging << -------------------- androguard.session: DEBUG: add APK:3bb32dd50129690bce850124ea120aa334e708eaa7987cf2329fd1ea0467a0eb androguard.session: DEBUG: added APK:3bb32dd50129690bce850124ea120aa334e708eaa7987cf2329fd1ea0467a0eb androguard.session: DEBUG: add DEX:2f24538b3064f1f88d3eb29ee7fbd2146779a4c9144aefa766d18965be8775c7 androguard.session: DEBUG: Parsing format ... --------------------- >> end captured logging << --------------------- ====================================================================== ERROR: testSessionDex (test_session.SessionTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/tests/test_session.py", line 14, in testSessionDex s.add("examples/android/TestsAndroguard/bin/classes.dex", fd.read()) File "/<<PKGBUILDDIR>>/androguard/session.py", line 168, in add digest, d, _ = self.addDEX(filename, raw_data) File "/<<PKGBUILDDIR>>/androguard/session.py", line 100, in addDEX d = DalvikVMFormat(data) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7525, in __init__ self._load(buff) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7536, in _load self.map_list = MapList(self.CM, self.__header.map_off, self) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7406, in __init__ self.size = unpack("=I", buff.read(4))[0] struct.error: unpack requires a buffer of 4 bytes -------------------- >> begin captured logging << -------------------- androguard.session: DEBUG: add DEX:2f24538b3064f1f88d3eb29ee7fbd2146779a4c9144aefa766d18965be8775c7 androguard.session: DEBUG: Parsing format ... --------------------- >> end captured logging << --------------------- ====================================================================== ERROR: testSessionLoad (test_session.SessionTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/tests/test_session.py", line 46, in testSessionLoad fd.read()) File "/<<PKGBUILDDIR>>/androguard/session.py", line 166, in add _, d, dx = self.addDEX(filename, dex, dx) File "/<<PKGBUILDDIR>>/androguard/session.py", line 100, in addDEX d = DalvikVMFormat(data) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7525, in __init__ self._load(buff) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7536, in _load self.map_list = MapList(self.CM, self.__header.map_off, self) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7406, in __init__ self.size = unpack("=I", buff.read(4))[0] struct.error: unpack requires a buffer of 4 bytes -------------------- >> begin captured logging << -------------------- androguard.session: DEBUG: add APK:3bb32dd50129690bce850124ea120aa334e708eaa7987cf2329fd1ea0467a0eb androguard.session: DEBUG: added APK:3bb32dd50129690bce850124ea120aa334e708eaa7987cf2329fd1ea0467a0eb androguard.session: DEBUG: add DEX:2f24538b3064f1f88d3eb29ee7fbd2146779a4c9144aefa766d18965be8775c7 androguard.session: DEBUG: Parsing format ... --------------------- >> end captured logging << --------------------- ====================================================================== ERROR: testSessionSave (test_session.SessionTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/tests/test_session.py", line 38, in testSessionSave fd.read()) File "/<<PKGBUILDDIR>>/androguard/session.py", line 166, in add _, d, dx = self.addDEX(filename, dex, dx) File "/<<PKGBUILDDIR>>/androguard/session.py", line 100, in addDEX d = DalvikVMFormat(data) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7525, in __init__ self._load(buff) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7536, in _load self.map_list = MapList(self.CM, self.__header.map_off, self) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7406, in __init__ self.size = unpack("=I", buff.read(4))[0] struct.error: unpack requires a buffer of 4 bytes -------------------- >> begin captured logging << -------------------- androguard.session: DEBUG: add APK:3bb32dd50129690bce850124ea120aa334e708eaa7987cf2329fd1ea0467a0eb androguard.session: DEBUG: added APK:3bb32dd50129690bce850124ea120aa334e708eaa7987cf2329fd1ea0467a0eb androguard.session: DEBUG: add DEX:2f24538b3064f1f88d3eb29ee7fbd2146779a4c9144aefa766d18965be8775c7 androguard.session: DEBUG: Parsing format ... --------------------- >> end captured logging << --------------------- ====================================================================== ERROR: testDex (test_strings.StringTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/tests/test_strings.py", line 13, in testDex d = dvm.DalvikVMFormat(fd.read()) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7525, in __init__ self._load(buff) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7536, in _load self.map_list = MapList(self.CM, self.__header.map_off, self) File "/<<PKGBUILDDIR>>/androguard/core/bytecodes/dvm.py", line 7406, in __init__ self.size = unpack("=I", buff.read(4))[0] struct.error: unpack requires a buffer of 4 bytes ====================================================================== FAIL: testAPKIntentFilters (test_apk.APKTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/tests/test_apk.py", line 206, in testAPKIntentFilters self.assertTrue(any(x != y for x, y in pairs)) AssertionError: False is not true ====================================================================== FAIL: testAPKManifest (test_apk.APKTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/tests/test_apk.py", line 137, in testAPKManifest self.assertEqual(a.get_app_name(), "TestsAndroguardApplication") AssertionError: '' != 'TestsAndroguardApplication' + TestsAndroguardApplication ====================================================================== FAIL: testAPKPermissions (test_apk.APKTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/tests/test_apk.py", line 158, in testAPKPermissions self.assertEqual(a.get_package(), "a2dp.Vol") AssertionError: None != 'a2dp.Vol' ====================================================================== FAIL: testAppIcon (test_arsc.ARSCTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/tests/test_arsc.py", line 43, in testAppIcon "Incorrect icon path for requested density") AssertionError: None != 'res/drawable-ldpi/icon.png' : Incorrect icon path for requested density ====================================================================== FAIL: testAppName (test_arsc.ARSCTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/tests/test_arsc.py", line 37, in testAppName self.assertEqual(app_name, TEST_APP_NAME, "Couldn't deduce application/activity label") AssertionError: '' != 'TestsAndroguardApplication' + TestsAndroguardApplication : Couldn't deduce application/activity label [93mtest_analysis.AnalysisTest.testAPK: 1.2212s[0m [0mdataflow_test.DataflowTest.testDefUseGCD: 0.2294s[0m [0mdataflow_test.DataflowTest.testReachDefGCD: 0.2283s[0m [0mdataflow_test.DataflowTest.testDefUseIfBool: 0.2092s[0m [0mtest_dexcodeparsing.TestDexCodeParsing.testcode: 0.0851s[0m [0mtest_apk.APKTest.testMultiDexAPK: 0.0359s[0m [0mtest_apk.APKTest.testNewZipWithDeletedFile: 0.0358s[0m [0mtest_apk.APKTest.testNewZipWithoutModification: 0.0355s[0m [0mtest_apk.APKTest.testNewZipWithNewFile: 0.0349s[0m [0mtest_apk.APKTest.testAPKCertFingerprint: 0.0240s[0m [0mtest_apk.APKTest.testAPKActivitiesAreString: 0.0189s[0m [0mtest_apk.APKTest.testAPKIntentFilters: 0.0183s[0m [0mtest_apk.APKTest.testAPKPermissions: 0.0183s[0m [0mtest_axml.AXMLTest.testPackers: 0.0099s[0m [0mtest_axml.AXMLTest.testDoubleNamespace: 0.0092s[0m [0mtest_axml.AXMLTest.testMaskingNamespace: 0.0092s[0m [0mtest_session.SessionTest.testSessionAPK: 0.0063s[0m [0mtest_session.SessionTest.testSessionLoad: 0.0062s[0m [0mtest_apk.APKTest.testAPKWrapperRaw: 0.0062s[0m [0mtest_session.SessionTest.testSessionSave: 0.0061s[0m [0mtest_apk.APKTest.testAPKWrapperUnsigned: 0.0059s[0m [0mtest_apk.APKTest.testAPKWrapper: 0.0059s[0m [0mtest_apk.APKTest.testAPKManifest: 0.0055s[0m [0mtest_axml.AXMLTest.testAXML: 0.0055s[0m [0mtest_axml.AXMLTest.testExtraNamespace: 0.0040s[0m [0mtest_apk.APKTest.testAPKCert: 0.0028s[0m [0mtest_axml.AXMLTest.testTextChunksWithXML: 0.0028s[0m [0mtest_apk.APKTest.testAPK: 0.0013s[0m [0mtest_axml.AXMLTest.testNonZeroStyleOffset: 0.0012s[0m [0mtest_axml.AXMLTest.testNullbytes: 0.0012s[0m [0mdataflow_test.DataflowTest.testSplitVariablesIfBool: 0.0009s[0m [0mtest_arsc.ARSCTest.testARSC: 0.0008s[0m [0mtest_dex.DexTest.testDexWrapper: 0.0008s[0m [0mtest_session.SessionTest.testSessionDex: 0.0005s[0m [0mtest_analysis.AnalysisTest.testDex: 0.0003s[0m [0mrpo_test.RpoTest.testFirstGraph: 0.0003s[0m [0mtest_dex.DexTest.testDex: 0.0002s[0m [0mrpo_test.RpoTest.testLinearVitGraph: 0.0002s[0m [0mtest_decompiler.DecompilerTest.testArrays: 0.0002s[0m [0mtest_rename.RenameTest.testMethodRename: 0.0002s[0m [0mdataflow_test.DataflowTest.testSplitVariablesGCD: 0.0002s[0m [0mtest_decompiler.DecompilerTest.testSimplification: 0.0002s[0m [0mrpo_test.RpoTest.testTarjanGraph: 0.0002s[0m [0mrpo_test.RpoTest.testTVerifyGraph: 0.0002s[0m [0mdataflow_test.DataflowTest.testGroupVariablesIfBool: 0.0001s[0m [0mdominator_test.DominatorTest.testFirstGraph: 0.0001s[0m [0mtest_strings.StringTest.testMUTF8: 0.0001s[0m [0mrpo_test.RpoTest.testFifthGraph: 0.0001s[0m [0mrpo_test.RpoTest.testCrossGraph: 0.0001s[0m [0mtest_arsc.ARSCTest.testTypeConfigs: 0.0001s[0m ---------------------------------------------------------------------- Ran 71 tests in 2.646s FAILED (SKIP=2, errors=26, failures=5) make[1]: *** [debian/rules:25: override_dh_auto_test] Error 1