Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix for 1006 #1011

Merged
merged 1 commit into from
Mar 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions androguard/core/axml/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2230,6 +2230,9 @@ def __init__(self, buff, expected_type=None, possible_types=None):
if possible_types:
while True:
cur_pos = buff.tell()
if buff.raw.getbuffer().nbytes < cur_pos + self.SIZE:
# reached end of the file, cases where packers set the EndNamespace with zero size require that
return
self._type, self._header_size, self._size = unpack('<HHL', buff.read(self.SIZE))

if cur_pos == 0 or (
Expand Down