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

Nikita Popov via All-commits all-commits at lists.llvm.org
Tue May 27 15:26:53 PDT 2025


  Branch: refs/heads/release/20.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 5d99a97583e148e2c0ad462bb35292366105e188
      https://github.com/llvm/llvm-project/commit/5d99a97583e148e2c0ad462bb35292366105e188
  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.

(cherry picked from commit 3f29acb51739a3e6bfb8cc623eb37cb734c98a63)



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