Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception DirectoryEntryVec:short size #13

Open
B3N4K opened this issue Oct 8, 2018 · 2 comments
Open

Exception DirectoryEntryVec:short size #13

B3N4K opened this issue Oct 8, 2018 · 2 comments

Comments

@B3N4K
Copy link

B3N4K commented Oct 8, 2018

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!

@herumi
Copy link
Owner

herumi commented Oct 9, 2018

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. #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?

@B3N4K
Copy link
Author

B3N4K commented Oct 22, 2018

Hi, I've sent the problematic file to your mail @ nifty dot com.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants