msoffice
msoffice copied to clipboard
Exception DirectoryEntryVec:short size
Hi,
Unfortunately the tool gives me exception similar to #7.
exception:ms:cfb:DirectoryEntryVec:short size:4096:256
Output of -v
:
msoffice-crypt -d -p 1234 invoice.doc decrypted.doc -v
inFile=../Downloads/invoice.doc, outFile=../Downloads/decrypted.doc, mode=dec, encMode=0
version : major = 3, minor = 0x003e
sectorShift = 9
numDirectorySectors = 0
numFatSectors = 1
firstDirectorySectorLocation = 9
transactionSignatureNumber = 0
firstMiniFatSectorLocation = 10
numMiniFatSectors = 1
firstDifatSectorLocation = END
numDifatSectors = 0
difat size=1
8
dataSize=38872(0x97d8)
sectorSize=512
# of mini fat sectors = 1
analyze dirs
load contents
dataSize=832, content.size()=1024
dataSize=4096, content.size()=256
exception:ms:cfb:DirectoryEntryVec:short size:4096:256
Could you please provide any help? If you need any more info, please feel free to ask. I cannot provide the doc in question publicly though. Thanks!
The error message shows that the actual size is smaller than the value of the header. The reason is that my code is wrong, the header is broken, or it is unsupported format( cf. https://github.com/herumi/msoffice/issues/9 ). I do not know which one. Though I do not have enough time to look it up now, could you give me the file if possible?
Hi, I've sent the problematic file to your mail @ nifty dot com
.