mdsteele / rust-cfb

Rust library for reading/writing Compound File Binary (structured storage) files
MIT License
44 stars 20 forks source link

Allow DIFAT chains to end with FREESECT #50

Closed jmacadie closed 7 months ago

jmacadie commented 7 months ago

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

mdsteele commented 7 months ago

Thanks!