Apache OpenOffice (AOO) Bugzilla – Issue 71248
Office (CWS) crashes when pasting html content into Writer document
Last modified: 2006-11-27 11:41:08 UTC
- Open Browser (I used Firefox 2.0) - URL: www.openoffice.org - select all - copy - Open Writer documenrt in CWS aw024 - paste -> crash Note: did not occur on m185 Master build.
AW: Problem already identified: FS changed SdrUnoObj::GetUnoControl() to only return an awt::XControl when one is visualized (using ViewContactOfUnoControl::getUnoControlForDevice()). In SW (htmlform.cxx) GetUnoControl() is used and the result is not tested. The next access then stumbles over an invalid reference -> GPF. Looks like GetUnoControl() returned a control always in the past. If this is necessary i do not know. Need to ask FS for that who is not here this week (unfortunately). BTW: There are more spaces in OOo where GetUnoControl() is used, most of them secured with testing the return value before usage.
AW: Took a look at the old behaviour. There, a PageView already exists and the xControl is found. Nonetheless the SW code needs to be secured. A PageView will exist in new code too, but there is no VOC created since it's not painted yet. A VOC may be forced when the PageView exists, but how finf the PageView using the given OutputDevice?
AW: Made a secure fix in htmlform.cxx to secure usage of GetUnoControl() result. Writing a follow-up task for FS to clarify intended behaviour. AW: Tested, checked in. Building installsets.
AW: Submitted #i71260# to FS explaining problem and pointing back to this task. Solved.
AW: Verified using the wntmsci10.pro version. SBA already looked at the 'linux'-version, i do not know if pro or non-pro. AW->SBA: Please verify, all install-sets are there.
SBA: Verified in CWS aw024.
SBA: OK in OOE680m5 Build 9093. Closed.