[Libreoffice-bugs] [Bug 135799] Password protection of macro libraries does not work
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Sun Aug 16 19:15:01 UTC 2020
https://bugs.documentfoundation.org/show_bug.cgi?id=135799
--- Comment #2 from Mike Kaganski <mikekaganski at hotmail.com> ---
Created attachment 164360
--> https://bugs.documentfoundation.org/attachment.cgi?id=164360&action=edit
Password-protected library with custom type with array data field
Reproducible.
This is caused by a fixed-type array data field in a custom type in the
protected library.
The attachment is a minimal reproducer. It contains two libraries: Library1
(password-protected; password is "123" without quotes), and Standard. Library1
contains a single module with only one definition of a custom type:
> Type TFail
> i(0) As Integer ' Fails when this password-protected library is loaded
> End Type
Library Standard contains sub Main, which only loads the password-protected
library:
> Sub Main
> ThisComponent.BasicLibraries.LoadLibrary("Library1")
> End Sub
This sub is executed when the button is clicked in the document.
The problem happens in SbiImage::Load (case FileOffset::UserTypes), which calls
pTypeElem->PutObject.
--
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/20200816/791c2742/attachment.htm>
More information about the Libreoffice-bugs
mailing list