Repository navigation
Read Apple disk images (DMG) - #173
Merged
Merged
Conversation
Part of #47 and #50. A pure-Python LZFSE decoder (raw, LZVN, v1 and v2 blocks) checked against Apple's reference encoder, used for decmpfs types 11 and 12. The tree cache version is raised so cached listings show the size of these files. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017DPjyZZHvaivtvJ3N4hZhz
Part of #47. UDIF images with raw, zero-fill, zlib, bzip2, LZMA and LZFSE chunks are read as a disk; encrypted, segmented and sparse images and ADC chunks are refused with a reason. Synthetic images only. Builds on the LZFSE decoder. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017DPjyZZHvaivtvJ3N4hZhz
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017DPjyZZHvaivtvJ3N4hZhz
Owner
Author
|
CI note: one job failed, Smoke test (windows-latest, Python 3.9), on two smoke checks about legacy-case index move and compacting a case ( Generated by Claude Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #47 (second of the three PRs agreed: LZFSE, DMG, AFF4). #47 stays open for AFF4.
What changes for examiners
.sparseimage(sprs) is named and refused as a different format.kolytrailer in the last 512 bytes together with version 4 and header size 512; a file that merely ends in "koly" stays raw..dmgis now offered when browsing for images.Verification
tests/imagebuild_dmg.pybuilds images from the published UDIF layout (trailer, plistblkx,mishtables); 23 tests cover every chunk kind, reads across chunks/partitions/gaps, one real LZFSE stream from Apple's encoder, a FAT volume inside a DMG, refusals, detection edge cases and random damage.hdiutil) was available, and I know of no independent DMG reader to cross-check against, so the builder and reader share my reading of the layout. Real images still need checking; ROADMAP and CHANGELOG say so.🤖 Generated with Claude Code
https://claude.ai/code/session_017DPjyZZHvaivtvJ3N4hZhz
Generated by Claude Code