[llvm] [MC] AsmLexer invalid read fix. (PR #154972)
Szymon Piotr Milczek via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 9 04:16:11 PDT 2025
================
@@ -0,0 +1,5 @@
+# RUN: llvm-mc -triple=x86_64 --as-lex %s
+
+# This test ensures AsmLexer doesn't perform an invalid read in a case where
+# buffer ends with '\0', ' ' or '\t'
+
----------------
smilczek wrote:
No line-break because last character has to be '\0', '\t' or ' '.
https://github.com/llvm/llvm-project/pull/154972
More information about the llvm-commits
mailing list