Skip to content

fix(native): recognize only whole otool command headers - #804

Closed
rudycelekli wants to merge 1 commit into
morluto:mainfrom
rudycelekli:fix/otool-command-lines-20261006
Closed

rudycelekli wants to merge 1 commit into
morluto:mainfrom
rudycelekli:fix/otool-command-lines-20261006

Conversation

@rudycelekli

Copy link
Copy Markdown

Summary

Recognize Load command N only as a complete otool output line. A valid dylib install name containing that text currently starts a false command block, truncates the dependency path and drops its versions while the inventory reports an exhaustive command count.

Validation

  • Actual Clang-built Mach-O dylibs with two install names containing Load command N: public NativeMacOSProvider inspect_macho returned 15 commands instead of the native 14 before; after it preserves all 14 and both exact dependency names. Ordinary install-name control passes.
  • 23 focused native parser/provider tests pass.
  • Exact signed head: npm run check passes (129 existing warnings, zero errors); npm run check:fast passes.

Native reproduction uses macOS arm64 and Apple's Clang/otool. No Hopper/Ghidra or other OS coverage is claimed; hosted CI remains separate. No schema or provider API changes.

AI assistance was used for investigation, implementation and tests; I reviewed the change and native results.

@morluto

morluto commented Oct 7, 2026

Copy link
Copy Markdown
Owner

Superseded by #815, which integrated this change and has now merged (3af3811). Thanks @rudycelekli for the fix and the thorough verification — much appreciated!

@morluto morluto closed this Oct 7, 2026
@morluto morluto added bug Something isn't working area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior labels Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants