mirror of
https://github.com/androguard/androguard.git
synced 2024-11-26 22:40:33 +00:00
axml: fix IndexError
This commit is contained in:
parent
ca11a39eb6
commit
771672e12a
@ -843,7 +843,7 @@ class AXMLParser:
|
||||
|
||||
res = self.sb[name]
|
||||
# If the result is a (null) string, we need to look it up.
|
||||
if name <= len(self.m_resourceIDs):
|
||||
if name < len(self.m_resourceIDs):
|
||||
attr = self.m_resourceIDs[name]
|
||||
if attr in public.SYSTEM_RESOURCES['attributes']['inverse']:
|
||||
res = public.SYSTEM_RESOURCES['attributes']['inverse'][attr].replace("_",
|
||||
|
Loading…
Reference in New Issue
Block a user