[all-commits] [llvm/llvm-project] 7bb962: [LLVM][Verifier] Fix buffer overflow when verifyin...

Tulio Magno Quites Machado Filho via All-commits all-commits at lists.llvm.org
Fri Jul 10 11:45:23 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7bb9626d5ab901e5c1a8e9acbbb1684c982401b4
      https://github.com/llvm/llvm-project/commit/7bb9626d5ab901e5c1a8e9acbbb1684c982401b4
  Author: Tulio Magno Quites Machado Filho <tuliom at redhat.com>
  Date:   2026-07-10 (Fri, 10 Jul 2026)

  Changed paths:
    M llvm/lib/IR/AsmWriter.cpp
    M llvm/lib/IR/IntrinsicInst.cpp
    M llvm/test/Verifier/gc_relocate_out_of_bounds.ll

  Log Message:
  -----------
  [LLVM][Verifier] Fix buffer overflow when verifying gc.statepoint (#208278)

When a negative base index is passed, the verification detects the
out-of-bounds value and start printing information that helps to
identify what caused the error. In order to print all the information,
it tries to dereference the Base pointer at
GCRelocateInst::getBasePtr(), causing the buffer overflow. Add a bounds
check to getBasePTR() and getDerivedPtr() in order to avoid this.

Improve the test in order to validate negative values passed as indexes.
They're based on the reproducer from issue #199191.

Fixes #199191



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list