Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow DIFAT chains to end with FREESECT #50

Merged
merged 2 commits into from
Feb 14, 2024
Merged

Conversation

jmacadie
Copy link

The specification says that the final DIFAT page, which has no successor, must terminate with ENDOFCHAIN (0xFFFFFFFE). In practice, I have found Excel xls files, which are CFB files, that just use FREESECT (0xFFFFFFFF).

Since Excel will open these non-standard files without complaint, this must be a tolerated divergence from the rules in the wild.

Resolves #49

The specification says that the final DIFAT page, which has no successor,
must terminate with ENDOFCHAIN (0xFFFFFFFE). In practice, I have found
Excel xls files, which are CFB files, that just use FREESECT (0xFFFFFFFF).

Since Excel will open these non-standard files without complaint, this
must be a tolerated divergence from the rules in the wild.
data/bad.xls Outdated
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I shouldn't have included this. Will remove

@mdsteele mdsteele merged commit baef54e into mdsteele:master Feb 14, 2024
4 checks passed
@mdsteele
Copy link
Owner

Thanks!

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.

DIFAT chain termination
2 participants