Nikita Popov 5d99a97583 [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)
2025-05-26 10:44:39 +00:00
..
2025-01-21 09:46:24 -08:00