Skip to content

feat(carve): exact length calculation for MOBI / AZW3 formats - #7

Merged
nkbeast merged 1 commit into
nkbeast:mainfrom
Reyatsu99:feat/mobi-exact-size
Aug 17, 2026
Merged

feat(carve): exact length calculation for MOBI / AZW3 formats#7
nkbeast merged 1 commit into
nkbeast:mainfrom
Reyatsu99:feat/mobi-exact-size

Conversation

@Reyatsu99

Copy link
Copy Markdown
Contributor

Replaces the unknown size return (return 0) in vMobi with exact file length calculation by reading the final PDB record offset and parsing its tail header (FLIS, FCIS, FDST, INDX, SRCS, or EOF marker).

Also updates the make_mobi test fixture in carve_spec_check.py with a valid FLIS block to verify exact carving.

@nkbeast
nkbeast merged commit 474bc5c into nkbeast:main Aug 17, 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