[Libreoffice-bugs] [Bug 142405] New: Binary image for encrypted library is incompatible with anything older than 5.0.3, regardless of image size

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri May 21 08:29:06 UTC 2021


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

            Bug ID: 142405
           Summary: Binary image for encrypted library is incompatible
                    with anything older than 5.0.3, regardless of image
                    size
           Product: LibreOffice
           Version: 5.0.3.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Keywords: bibisectNotNeeded, difficultyMedium, easyHack,
                    regression, skillCpp
          Severity: normal
          Priority: medium
         Component: BASIC
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: mikekaganski at hotmail.com
            Blocks: 107659

Created attachment 172222
  --> https://bugs.documentfoundation.org/attachment.cgi?id=172222&action=edit
Password for library is "1234"

Since fixing bug 94617, the binary images generated by LibreOffice use new
incompatible format of storing method data unconditionally (see
SbMethod::StoreData changed in [1]), even when writing legacy image formats,
and not only for image format 0x13 (see basic/source/inc/filefmt.hxx). This
makes the encrypted library unusable in any older LO version, as well as in OOo
and AOO.

Steps to reproduce:
1. Create a new document;
2. Add a library to it (in Basic IDE use Tools->Select Module, and on Libraries
tab, under current document location, use New button);
3. Password-protect it;
4. Add a short method to it (e.g., simply calling MsgBox with a short message);
5. Add a button calling the method;
6. Save the document
7. Try pressing the button in any AOO version (or in LO 5.0.2 or older).

At step 6, there's no compatibility warning. At step 7, there will be an error
message telling that the Basic script is not found (unlike the newer LO
versions).

The code writing the new format should be made conditional on which image
format is being written. The code pointer is in the commit [1].

[1] https://git.libreoffice.org/core/+/ddb45261590939d884ac2bcb1fd258de7b2370da


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=107659
[Bug 107659] [META] Macro bugs and enhancements
-- 
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/20210521/52161490/attachment.htm>


More information about the Libreoffice-bugs mailing list