Skip to content

Parse the Code Directory in the code signature view#32

Merged
everettjf merged 2 commits into
masterfrom
claude/review-and-plan-g4p9o
May 23, 2026
Merged

Parse the Code Directory in the code signature view#32
everettjf merged 2 commits into
masterfrom
claude/review-and-plan-g4p9o

Conversation

@everettjf
Copy link
Copy Markdown
Owner

Summary

Extends the Code Signature view (which already decoded the SuperBlob and entitlements) to parse the Code Directory blob:

  • Identifier and Team Identifier (v0x20200+)
  • Hash type and size (SHA-1 / SHA-256 / ...)
  • Flags decoded (adhoc, runtime, linker-signed, ...)
  • Code slot / special slot counts, page size, code limit

All reads are big-endian and bounded against the signature blob.

Verified

On the sample/complex signature (--cli): identifier com.everettjf.MachODemo, team YPV49M8592, SHA-1 (20 bytes), 38 code slots @ 4096, 5 special slots, code limit 152816 — all self-consistent with the embedded entitlements. Full tests/regression/run_all.sh passes.

https://claude.ai/code/session_013kBiVXftgoEsyGVyrvfGok


Generated by Claude Code

claude added 2 commits May 23, 2026 14:52
Decode the Code Directory blob alongside the existing entitlements view:
identifier, team identifier (v0x20200+), hash type/size, flags (adhoc, runtime,
linker-signed, ...), code/special slot counts, page size, and code limit. All
reads are big-endian and bounded against the signature blob, so malformed input
degrades gracefully.

https://claude.ai/code/session_013kBiVXftgoEsyGVyrvfGok
@everettjf everettjf merged commit e0b5c87 into master May 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants