-
Notifications
You must be signed in to change notification settings - Fork 58
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
archinfo.arch_arm.is_arm_arch
returns False
for AArch64
#109
Comments
oops!!!!! I would really rather the aarch64 arch be AArch, but it's too late for that I guess! |
It looks like the above commit causes several of our tests to fail. I'm going to revert it until I have time to investigate. |
Hi all, I believe there is some logic in angr that relies on “AArch64 not being ARM.” I’ve been writing code with the understanding that |
In that case, it might be better to just change the implementation to the below. It doesn't change functionality, so all tests should be unaffected, but it's not suggesting it returns def is_arm_arch(a):
return a.name.startswith('ARM') |
I've applied the recommended patch. Thanks! |
Description
The function
archinfo.arch_arm.is_arm_arch
returnsFalse
forarchinfo.ArchAArch64
:The implementation of
is_arm_arch
(also) checks if thename
string starts with"AArch"
. However,archinfo.ArchAArch64.name
is"AARCH64"
. In fact, there is no arch that has aname
that starts with"AArch"
. As such, I assume this is a bug - either inis_arm_arch
or in the definition ofarchinfo.ArchAArch64.name
.Possible fix
A possible fix could be to change the implementation of
is_arm_arch
slightly to:The text was updated successfully, but these errors were encountered: