Skip to content

Commit

Permalink
[AArch64][AsmParser] Stop parsing on error (llvm#106804)
Browse files Browse the repository at this point in the history
Fixes buffer overflow after llvm#106625
  • Loading branch information
vitalybuka authored Aug 30, 2024
1 parent 8f0c014 commit 10affaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 10affaf

Please sign in to comment.