[all-commits] [llvm/llvm-project] 3f29ac: [MachO] Improve bounds check (#141083)

Nikita Popov via All-commits all-commits at lists.llvm.org
Mon May 26 00:43:21 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3f29acb51739a3e6bfb8cc623eb37cb734c98a63
      https://github.com/llvm/llvm-project/commit/3f29acb51739a3e6bfb8cc623eb37cb734c98a63
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2025-05-26 (Mon, 26 May 2025)

  Changed paths:
    M llvm/lib/Object/MachOObjectFile.cpp

  Log Message:
  -----------
  [MachO] Improve bounds check (#141083)

The current check may fail if the addition overflows. I've observed
failures of macho-invalid.test on 32-bit due to this.

Instead, compare against the remaining bytes until the end of the
object.



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