-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[AArch64][AsmParser] Stop parsing on error #106804
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
[AArch64][AsmParser] Stop parsing on error #106804
Conversation
Created using spr 1.3.4
@llvm/pr-subscribers-backend-aarch64 Author: Vitaly Buka (vitalybuka) ChangesFixes buffer overflow after #106625 Full diff: https://github.com/llvm/llvm-project/pull/106804.diff 1 Files Affected:
diff --git a/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp b/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
index 34c0fad45fc499..373f844b239081 100644
--- a/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
+++ b/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
@@ -6995,7 +6995,7 @@ bool AArch64AsmParser::parseDirectiveArch(SMLoc L) {
});
if (It == std::end(ExtensionMap))
- Error(CurLoc, "unsupported architectural extension: " + Name);
+ return Error(CurLoc, "unsupported architectural extension: " + Name);
if (EnableFeature)
STI.SetFeatureBitsTransitively(It->Features);
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/123/builds/4650 Here is the relevant piece of the build log for the reference
|
Fixes buffer overflow after #106625