I took a look at the code, since tompe mentioned my name. I think that a mobipocket file with a MOBI header length of 0 is a bad mobipocket file.
The error message is because it's assumed that the header length is at least 0x74 bytes, and that line is trying to set a flag in the 71-74 bytes of the zero-length header. Whoops. Probably the code should be sanity checking the header length and failing more gracefully.
Paul
Quote:
Originally Posted by samhain
MOBIHEADER length: 0
|