[llvm] [yaml2obj] Don't use uninitialized Type (PR #123274)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 21 00:47:30 PST 2025
================
@@ -454,3 +454,19 @@ Sections:
# LINK-NEXT: [ 2] .ref.first PROGBITS [[#%x,]] [[#%x,]] [[#%x,]] [[#%x,]] 1
# LINK-NEXT: [ 3] .ref.last PROGBITS [[#%x,]] [[#%x,]] [[#%x,]] [[#%x,]] 4
# LINK-NEXT: [ 4] .shstrtab
+
+# Must not crash under Msan.
----------------
jh7370 wrote:
I think this comment is unnecessary - it's implicit that tests shouldn't fail under sanitizers. What would be useful would be saying what's interesting about this case, namely that unrecognised section `Type` fields are handled sensibly.
https://github.com/llvm/llvm-project/pull/123274
More information about the llvm-commits
mailing list