mdsteele / rust-cfb

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

Make directory processing more permissive #56

Closed shamilsan closed 2 weeks ago

shamilsan commented 2 months ago

Sometimes we are to open CFB files with corrupted directory structure.

In this PR we skip weird dir entries (in permissive mode) instead of returning an error.

Mostly inspired by compoundfiles.entities

shamilsan commented 2 months ago

@mdsteele Could you please take a look?

mdsteele commented 2 months ago

Thanks. Could you add some unit tests for this?

shamilsan commented 2 months ago

Thanks. Could you add some unit tests for this?

Ok, I'll try my best a little bit later.