extrame / xls

Pure Golang xls library
Apache License 2.0
331 stars 210 forks source link

Only read required field for BOF record #79

Open hudbrog opened 3 years ago

hudbrog commented 3 years ago

There are BIFF8 files that have BOF record with size 8. With current implementation binary.Read fails (silently, cause errors are ignored) because struct is 16 bytes. Although standard does specify BOF to be 16 bytes, I've stumbled upon files like that on numerous occasions.

libxls only reads first 4 bytes as well from BOF.