Quote:
Originally Posted by KevinH
My testcase did freak out the split code. I print the ofs and it values used in deletesectionrange and end up with an invalid ofs (it is negative) possibly because one of the original start values was 0xffffffff ? I am not sure.
|
I just noticed that I should have checked the offsets being adjusted for the mobi8 file, so that could have been the problem. I've attached an updated mobi_split.py with all the fixes noted so far.
EDIT: found a couple of problems in deletesectionrange and updated the attachment to fix them