Skip to content

ByteOrder check fails on parsing xls file that's of minor version 3B #695

@ghost

Description

I've an xls file that's been formated as
image

While signature validation pass, the byteOrder validation in CompoundDocument class constructor fails as those 2 bytes are read as FEFF by BinaryReader.ReadUInt16(). It could be a minor version 3B specific, I honestly don't know.

Also, according to Compound File documentation, ByteOrder 0xFFFE specifying little endian applies to all CFB files, meaning all CFB files shall be read that way. The question is does it really need to be validated at all?

So far I've checked locally repository, commented out ByteOrder validation and successfully read the whole file with all data intact.
Can this be an improvement by removing this validation at all?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions