SheetJS / js-cfb

:floppy_disk: OLE File Container Format
https://sheetjs.com/cfb-editor
Apache License 2.0
69 stars 15 forks source link

Problematic file giving infinite loop / OOM in make_sector_list #8

Closed rossj closed 4 years ago

rossj commented 4 years ago

Hi there,

I have a .doc file that is not exiting the inner loop of make_sector_list, leading to an OOM crash. There is some issue with the file itself, as Word gives an error opening it; however, DFVIEW.EXE opens the file and will display all the contained streams without complaining.

image

Even if the file is bad and can't be read, hopefully there is some condition that can throw an exception rather than OOM.