Repository navigation
Decode LZFSE; read LZFSE-compressed files on HFS+ and APFS - #172
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
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 and #50: first of three PRs agreed for #47 (LZFSE, then DMG, then AFF4). #47 and #50 stay open.
What changes for examiners
engine/lzfse.pyis a pure-Python decoder for raw, LZVN, v1 and v2 LZFSE blocks. It is also what DMG'sULFOchunks will use in the next PR.Verification
tests/lzfse_vectors.pyso CI needs no dependency. The reference decoder source was used to write the layouts and FSE tables.bvx1) blocks, which this encoder no longer writes, are tested by rewriting a v2 header in v1 layout. That is a self-consistency check, not an independent one.LzfseError; fuzz target added (3000 cases, no findings).🤖 Generated with Claude Code
https://claude.ai/code/session_017DPjyZZHvaivtvJ3N4hZhz
Generated by Claude Code