rea/tests
Kaoru0822 adde8a8092
fix(native): reject required otool fields truncated before their value (#1995)
* fix(native): reject required otool fields truncated before their value

#1967 let requireUniqueField count a label at end of line so an empty
dylib-use options row is present. That applied to every required field,
so truncated output such as a bare vmaddr, vmsize, uuid or entryoff line
passed the presence check while parseField dropped it, and the value
silently became null.

Let parseField decide which labeled line carries a value: the single
matching line must parse as that field. The empty options row remains
the only valueless field parseField admits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(native): admit the empty segname of Mach-O object files

MH_OBJECT files put their sections in one segment whose name is empty,
and otool -l prints it as a bare segname label. Requiring a value for
every scalar field rejected valid object-file output as unreadable.

Let parseField admit an empty segname like the empty dylib-use options
row, and keep projecting an empty or absent segment name as "unknown",
as main did.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(native): admit all-NUL Mach-O section names

An all-NUL section_64.sectname prints as a bare sectname label, like an
empty segname. Admit it in parseField and keep projecting the empty name
as "unknown", as main did.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 08:55:50 +08:00
..
acceptance fix(contracts): reject OS-invalid local paths in binary and artifact tools (#1925) 2026-10-12 08:53:03 +08:00
boundary fix(native): reject required otool fields truncated before their value (#1995) 2026-10-12 08:55:50 +08:00
composition feat(managed): select declaring types in inspect_managed_members 2026-10-12 08:31:37 +08:00
conformance test(ghidra): require pending multi-HI16 coverage in the real MIPS relocatable lane (#1974) 2026-10-12 08:42:08 +08:00
evaluation test(architecture): consolidate import boundary verification 2026-10-12 01:31:33 +08:00
fixtures fix(wasm): inspect modules whose custom section names contain NUL (#1981) 2026-10-12 08:41:55 +08:00
process-global perf(test): reuse CLI boundary worker module graphs 2026-10-11 20:29:12 +08:00
support fix(workflows): retain staged output ownership and cancellation semantics 2026-10-12 06:29:27 +08:00
ciTestSequencer.ts ci: balance test shards and reuse package download caches 2026-10-11 16:40:17 +08:00
processOwnershipRunner.ts test(process): retire native caches at worker teardown 2026-10-09 04:12:49 +08:00