[llvm] [llvm][ELF]Add Shdr check for getBuildID (PR #126537)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 22 01:07:50 PDT 2025


================
@@ -40,7 +40,7 @@ static StringRef getInvalidNoteELF(bool WithShdr) {
   Machine:        EM_X86_64
 ProgramHeaders:
   - Type:         PT_NOTE
-    FileSize:     0xffffffffffffffff
+    FileSize:     0xffffffffffffff88
----------------
jh7370 wrote:

I'm not sure I follow why this is 0xffffffffffffff88 and not 0xffffffffffffffff like it was before (or indeed some other value that better tests the boundary limits).

https://github.com/llvm/llvm-project/pull/126537


More information about the llvm-commits mailing list