Files
rea/tests/fixtures/native-macos/otool-high-address.md
T
morlutoandGitHub 405732a7f5 fix: correct native inventories and bridge error classification (#503)
* fix(hopper): preserve normalized inventory addresses

* test(hopper): isolate real inventory verification

* fix(native): preserve otool addresses and section alignment

* fix: preserve address spaces in call path evidence

* fix(hopper): distinguish request validation from provider faults

* fix(native): retain tool inventory facts and reject failed signatures
2026-10-04 17:25:09 +08:00

931 B

High-address otool capture

otool-high-address.txt is captured output from the installed Apple otool, with only its first filename line changed to fixture:. It exercises addresses above JavaScript's safe integer range and the actual 2^N (bytes) alignment notation. The minimal Mach-O is generated locally; no binary is checked in.

Reproduce the capture on macOS with Xcode command line tools:

python3 - <<'PY'
import struct
from pathlib import Path

base = 0xfffffff007004001
header = struct.pack('<8I', 0xfeedfacf, 0x0100000c, 0, 5, 1, 152, 0, 0)
segment = struct.pack(
    '<II16sQQQQIIII', 0x19, 152, b'__TEXT', base, 0x1000, 0, 185, 5, 5, 1, 0,
)
section = struct.pack(
    '<16s16sQQIIIIIIII', b'__text', b'__TEXT', base + 184, 1,
    184, 0, 0, 0, 0x80000400, 0, 0, 0,
)
Path('/tmp/rea-high-address.macho').write_bytes(header + segment + section + b'\xc0')
PY
xcrun otool -l /tmp/rea-high-address.macho