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

disables llvm (< 8.0) disassembler for aarch64 #1082

Merged
merged 3 commits into from
Mar 18, 2020

Conversation

gitoleg
Copy link
Contributor

@gitoleg gitoleg commented Mar 17, 2020

The LLVM disassembler is broken for aarch64 and segfaults with the NULL-pointer dereference (segmentation fault) on versions below 8.0. There is no clear mitigation (passing a non-NULL pointer for the symbolizer function results in unpredictable behavior) and given that aarch64 is not a first-tier architecture for us yet, we will just disable it for older versions of LLVM.

fixes #1081

The LLVM disassembler is broken for aarch64 and segfaults with the NULL-pointer dereference (segmentation fault) on versions below 8.0. There is no clear mitigation (passing a non-NULL pointer for the symbolizer function results in unpredictable behavior) and given that aarch64 is not a first-tier architecture for us yet, we will just disable it for older versions of LLVM.
@@ -615,14 +615,30 @@ class llvm_disassembler : public disassembler_interface {
}
};


bool is_error_prone_arch(const char *triple) {
#if LLVM_VERSION_MAJOR >= 4 && LLVM_VERSION_MAJOR < 8
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't use macro here. If anything could be done without a macro, it should be done without it.

@gitoleg gitoleg merged commit 1dc4675 into BinaryAnalysisPlatform:master Mar 18, 2020
@gitoleg gitoleg deleted the fix-aarch-segfault branch May 13, 2020 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

aarch64 disassembler segfaults
2 participants