<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Binary image for encrypted library is incompatible with anything older than 5.0.3, regardless of image size"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=142405">142405</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Binary image for encrypted library is incompatible with anything older than 5.0.3, regardless of image size
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>5.0.3.2 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Keywords</th>
          <td>bibisectNotNeeded, difficultyMedium, easyHack, regression, skillCpp
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>BASIC
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>mikekaganski@hotmail.com
          </td>
        </tr>

        <tr>
          <th>Blocks</th>
          <td>107659
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="https://bugs.documentfoundation.org/attachment.cgi?id=172222" name="attach_172222" title="Password for library is "1234"">attachment 172222</a> <a href="https://bugs.documentfoundation.org/attachment.cgi?id=172222&action=edit" title="Password for library is "1234"">[details]</a></span>
Password for library is "1234"

Since fixing <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - method nStart overflow in pCode"
   href="show_bug.cgi?id=94617">bug 94617</a>, 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] <a href="https://git.libreoffice.org/core/+/ddb45261590939d884ac2bcb1fd258de7b2370da">https://git.libreoffice.org/core/+/ddb45261590939d884ac2bcb1fd258de7b2370da</a></pre>
        </div>
      </p>

        <div id="referenced">
          <hr style="border: 1px dashed #969696">
          <b>Referenced Bugs:</b>
          <ul>
              <li>
                [<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [META] Macro bugs and enhancements"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=107659">Bug 107659</a>] [META] Macro bugs and enhancements
              </li>
          </ul>
        </div>
        <br>

      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>