Skip to content

refactor(cfb): resolve special case in the caller of fn get_chain#615

Merged
jmcnamara merged 1 commit intotafia:masterfrom
sftse:get-chain
Mar 7, 2026
Merged

refactor(cfb): resolve special case in the caller of fn get_chain#615
jmcnamara merged 1 commit intotafia:masterfrom
sftse:get-chain

Conversation

@sftse
Copy link
Contributor

@sftse sftse commented Mar 2, 2026

Follow up on #609 where the confusion is resolved by len == 0 being caused by a special case in the spec.

Resolving this special case in the caller streamlines the logic inside fn get_chain

@sftse
Copy link
Contributor Author

sftse commented Mar 7, 2026

Ok, because the code now no longer has a reference to the spec justifying this change, reposting as comment

[MS-CFB] 2.2 Compound File Header
If Major Version is 3, the Number of Directory Sectors MUST be zero.

@jmcnamara jmcnamara merged commit 30223e7 into tafia:master Mar 7, 2026
6 checks passed
@jmcnamara
Copy link
Collaborator

Thanks for making the requested changes. Merged.

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