To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=90612
                 Issue #|90612
                 Summary|sd: insert->file with password protected document
               Component|Drawing
                 Version|DEV300m18
                Platform|All
                     URL|
              OS/Version|Linux
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|PATCH
                Priority|P3
            Subcomponent|code
             Assigned to|wg
             Reported by|cmc





------- Additional comments from [EMAIL PROTECTED] Wed Jun 11 11:30:09 +0000 
2008 -------
If I create a password protected .odg and then create a new presentation and use
file->insert and select the password protected .odg and continually press ok it
will crash with 

    SfxFilterMatcher::GuessFilterControlDefaultUI(SfxMedium&, SfxFilter const**,
unsigned long, unsigned long, unsigned char) const
    /usr/src/debug/OOG680_m6/sfx2/source/bastyp/fltfnc.cxx:549
/usr/lib/openoffice.org/program/libsfx680li.so : 0x240730
    SfxFilterMatcher::GuessFilter(SfxMedium&, SfxFilter const**, unsigned long,
unsigned long) const
    /usr/src/debug/OOG680_m6/sfx2/source/bastyp/fltfnc.cxx:530
/usr/lib/openoffice.org/program/libsd680li.so : 0x192ADB
    SdDrawDocument::OpenBookmarkDoc(SfxMedium&)
    /usr/src/debug/OOG680_m6/sd/source/core/drawdoc3.cxx:156
/usr/lib/openoffice.org/program/libsd680li.so : 0x16B4D0
    SdPageObjsTLB::GetBookmarkDoc(SfxMedium*)

When happens is the the first time we attempt to get the bookmarks in
SdPageObjsTLB::GetBookmarkDoc we use 
mpBookmarkDoc = ((SdDrawDocument*) mpDoc)->OpenBookmarkDoc(*mpMedium);
if this fails the underlying mpDoc has closed the mpMedium on us and it is now
invalid. If we attempt to use it again on the next cycle then we crash.

So something like the following patch looks indicated, or an additional
reference taken by the dialog to ensure it remains open.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to