View Single Post
Old 04-09-2009, 11:31 AM   #736
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 74,082
Karma: 315558332
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
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 View Post
MOBIHEADER length: 0
pdurrant is offline   Reply With Quote