Issue 22984 - password protected macro library crash
Summary: password protected macro library crash
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: scripting (show other issues)
Version: OOo 1.1
Hardware: PC Windows XP
: P2 Trivial (vote)
Target Milestone: OOo 1.1.2
Assignee: thorsten.martens
QA Contact: issues@framework
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-28 14:11 UTC by maison.godard
Modified: 2004-05-14 14:50 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description maison.godard 2003-11-28 14:11:15 UTC
Hi,

please fin here a bug report dealing with macro library protection

To test it, i defined a new library (password protected), wrote a small sub 
macro (print "something") and saved the document as a writer TEMPLATE 

opening a new document based on this template
- If i plug a formular button on this macro, nothing happens
- If i try to edit the macro. I'm prompted for password to access inside the 
library --> ok. On validating this inputbox with the password, OOo crashes with
Visual C++ error on soffice.exe - error R6025 - pure virtual function call 

This does NOT occur if the library is a normal document (not saved in a 
template)

Andreas Bregas confirmed the bug (thanks to him) and asked me to add this in 
the report :
I saw SotStorage::OpenEncryptedSotStream() on the stack

Thanks a lot

laurent
Comment 1 thorsten.ziehm 2004-01-06 08:39:51 UTC
I change the target to OOo 1.1.2. Only when we find a fix very quickly and it is
not risky, we can think about the target OOo 1.1.1.
Comment 2 mikhail.voytenko 2004-01-20 12:20:26 UTC
.
Comment 3 mikhail.voytenko 2004-03-12 09:35:25 UTC
The problem is that on storage copying the encryption information of the stream
is lost.
The fix is to use different way for copying of the template.
Comment 4 mikhail.voytenko 2004-03-22 07:26:01 UTC
Fixed.
Comment 5 mikhail.voytenko 2004-03-22 08:37:37 UTC
Sending for testing.
Comment 6 thorsten.martens 2004-03-23 09:47:04 UTC
Checked and verified together with SW in cws fwk01pp03 -> OK !
Comment 7 thorsten.martens 2004-03-23 09:47:36 UTC
.
Comment 8 thorsten.martens 2004-05-14 14:50:30 UTC
closed