You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The parsing of the files stop when res1 is zero on some apks, which causes the analysis to completely stop.
A patch was implemented for androguard to make the analysis of the particular chunk stop, and log a warning instead: https://github.com/androguard/androguard/pull/1008/files
I would suggest the replacement of the two assert statements at line in 129 pyaxmlparser/arscutil.py with the following:
res_error = False
if self.res0 != 0:
log.warning("res0 is not zero!")
res_error = True
if self.res1 != 0:
log.warning("res1 is not zero!")
res_error = True
if not res_error: # Skips processing attempt if there was an error
self.entryCount = unpack("<I", buff.read(4))[0]
self.typespec_entries = []
for i in range(0, self.entryCount):
self.typespec_entries.append(unpack("<I", buff.read(4))[0])
And replace the assert statement at line 587 with the following:
if self.res0 != 0:
log.warning("res0 is not zero!")
else:
self.data_type = unpack('<B', buff.read(1))[0]
self.data = unpack('<I', buff.read(4))[0]
The text was updated successfully, but these errors were encountered:
The parsing of the files stop when res1 is zero on some apks, which causes the analysis to completely stop.
A patch was implemented for androguard to make the analysis of the particular chunk stop, and log a warning instead:
https://github.com/androguard/androguard/pull/1008/files
I would suggest the replacement of the two assert statements at line in 129
pyaxmlparser/arscutil.py
with the following:And replace the assert statement at line 587 with the following:
The text was updated successfully, but these errors were encountered: