Repository navigation
Keep a scoped carve's hits inside their free runs - #259
Merged
Merged
Conversation
A scoped carve scans each free run on its own. A hit's length came from the file's own box sizes, so a hit could run past its run and overlap the hits of the runs after it, and one ISO-BMFF box with a 64-bit size could declare more than the disk holds. In staged mode each such hit was copied from its offset to the end of the image, so the staged copies could outgrow the disk. The scoped carve now asks the carver to cut each hit at the end of its run. Re-vendors mediacarve at 0.2.0, which adds that option, caps an ISO-BMFF hit at its ceiling, ends every hit at the end of the stream, and applies the ceiling of the kind found. The last one was falling to 1 MiB for AVI, WebP, MP4 and HEIC: an AVI or WebP over 1 MiB was not carved, and an MP4 whose moov follows a large mdat was carved without its moov. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Keeps a scoped carve from staging more than the free space it read.
The vendored commit is the head of that pull request, so it should merge first, with a merge commit.
🤖 Generated with Claude Code