Apache OpenOffice (AOO) Bugzilla – Issue 100346
Crash:copying filter's data from excel 2003.
Last modified: 2013-08-07 15:14:39 UTC
Description: 1.Create a new *.ods document in OOom42. 2.Create a new *.xls 2003. 3.I input some characters in B2 to B8 in excel 2003,for example,a1,a2,a3,a4,a5,a6 etc. 4.click data-filter-autofilter,select autofilter flag,select a3,selected B2 to B4,copy a1 and a3 to *.ods document. 5.the ods document will crash.
taking over
target
dep.
dr->kohei: reason of this crash is the unchecked usage of docshell in sc/source/filter/excel/xilink.cxx, XclImpSupbook::LoadCachedValues(). The docshell is NULL e.g. when pasting from clipboard. Please check if there are other places related to external links where a docshell pointer is used unchecked.
I've found two more locations where the shell pointer is not checked for NULL value. I'll post a patch to fix it in a minute.
Created attachment 61046 [details] patch to add NULL check on shell instance
Created attachment 61047 [details] actually let's use this one instead.
Both of these locations are related to external links. BTW I wasn't aware that the shell can be NULL for clipboard handling. Good to know.
Thanks, Kohei. Committed.
back to QA
verified in internal build cws_calc31stopper4
Verified in OOo310m8 on WinXP and Fedora9. Closing Li Meiying
cc
Change build as DEV300m42