Skip to content

Commit

Permalink
Fix missing ARM alias in arch_defs (vivisect#666) (vivisect#667)
Browse files Browse the repository at this point in the history
* Fix missing ARM alias in arch_defs (vivisect#666)

* Update envi/__init__.py

---------

Co-authored-by: atlas0fd00m <[email protected]>
  • Loading branch information
jpsnyder and atlas0fd00m authored Aug 12, 2024
1 parent a8a8c8b commit 4729907
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions envi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@

ARCH_ARMV7: {
'name': 'arm',
'aliases': ('armv6l', 'armv7l', 'a32', 'leg', 'leg32'),
'aliases': ('armv7a', 'armv7', 'armv7l', 'armv6l', 'arm32', 'a32', 'leg', 'leg32'),
'modpath': ('envi', 'archs', 'arm'),
'clsname': 'ArmModule',
'version': (1,0,0),
Expand Down Expand Up @@ -1555,7 +1555,7 @@ def getArchByName(archname):
'''
Get the architecture constant by the humon name.
'''
return arch_by_name_and_aliases.get(archname)
return arch_by_name_and_aliases.get(archname.lower())

def getArchById(archid):
'''
Expand Down

0 comments on commit 4729907

Please sign in to comment.