From 05c02efd1a5e20caabd62b3556eccc71f7fefe39 Mon Sep 17 00:00:00 2001 From: erev0s Date: Mon, 11 Mar 2024 23:21:16 +0200 Subject: [PATCH] supplementary for 1006 --- androguard/core/axml/__init__.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/androguard/core/axml/__init__.py b/androguard/core/axml/__init__.py index 6cd432e0..0db39308 100644 --- a/androguard/core/axml/__init__.py +++ b/androguard/core/axml/__init__.py @@ -2230,11 +2230,12 @@ class ARSCHeader: 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('= self.SIZE and self._size > self.SIZE): break