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

Ruoyu Qiu via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 24 00:52:32 PDT 2025


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

> Oh, I should add that the current case is a good way of testing the overflow boundary case in the other PR.

Yes, the boundary value is intended for the overflow check.
In this PR, I’ll remove the unrelated parts so it focuses on its main subject.

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


More information about the llvm-commits mailing list