[Libreoffice-bugs] [Bug 114221] Calc changes .XLS password on save (Save as works)

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun Dec 10 05:07:50 UTC 2017


https://bugs.documentfoundation.org/show_bug.cgi?id=114221

--- Comment #13 from Aron Budea <baron at caesar.elte.hu> ---
Created attachment 138338
  --> https://bugs.documentfoundation.org/attachment.cgi?id=138338&action=edit
File with bug - recovered

(In reply to francis-marylene from comment #10)
> What about the file which is corrupted (CA2017)? I really would like to open
> it again. Do you have a way to recover it?
I have good news for you, the file is recoverable, I'm attaching it, it's
unencrypted now.

When the user simply saves the file, it saves as an unencrypted file, but sets
encryption mode for it, thus it fails decryption. I could open the bad file by
setting a breakpoint at the following line, and skipping to the end of the
function:

rStrm.SetDecrypter( xDecr );
https://opengrok.libreoffice.org/xref/core/sc/source/filter/excel/xicontent.cxx#1247

Then the file could be saved, and is saved unencrypted.

The bug only affects files having this newer encryption (>= MS Office 2013),
when they are saved (via save as, since that works), the scheme reverts to the
older one, opening and saving those files keeps the format and encryption.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20171210/9413e753/attachment.html>


More information about the Libreoffice-bugs mailing list