To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=58961
                  Issue #:|58961
                  Summary:|Do not use the stream that might be dispose in
                          |drawdoc3.cxx
                Component:|framework
                  Version:|680m142
                 Platform:|All
                      URL:|
               OS/Version:|All
                   Status:|NEW
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|DEFECT
                 Priority:|P3
             Subcomponent:|code
              Assigned to:|mav
              Reported by:|mav





------- Additional comments from [EMAIL PROTECTED] Tue Dec  6 07:44:13 -0800 
2005 -------
The code in drawdoc3.cxx:SdDrawDocument::GetDocumentStream() uses
XStorage::openStreamElement() to get the stream. But the stream's parent is
disposed aftewards since it goes out of scope. Most of time it works by luck
since the ::utl::UcbStreamHelper::CreateStream() implementation copies the
stream in case it is not seekable, and READ access does not require seeking. But
in case the stream was already opened for writing or reading the stream might be
seekable, since there is already cached data.

As MBA has suggested the drawdoc3.cxx:SdDrawDocument::GetDocumentStream() method
should be removed, moreover for later versions nonseekable XInputStream should
be enough to read the graphics.

---------------------------------------------------------------------
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