Summary: | FILEOPEN: Writer crashes when it opens an odt file produced by JasperReport | ||
---|---|---|---|
Product: | LibreOffice | Reporter: | Jean-Baptiste Faure <jbfaure> |
Component: | Writer | Assignee: | Not Assigned <libreoffice-bugs> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | critical | ||
Priority: | high | CC: | arnaud.versini, cedric.bosdonnat.ooo, chagadaev |
Version: | 3.5.1 release | Keywords: | regression |
Hardware: | All | ||
OS: | All | ||
See Also: | https://bugs.freedesktop.org/show_bug.cgi?id=64150 | ||
Whiteboard: | BSA target:3.6.0 target:3.5.4 | ||
i915 platform: | i915 features: | ||
Attachments: |
ODT bugdoc which kills LO
Valgrind report of the crash |
Description
Jean-Baptiste Faure
2012-03-17 05:41:14 UTC
Created attachment 58597 [details]
ODT bugdoc which kills LO
The bugdoc kills LO 3.5.2 rc0+ (Version ID : c39e96d-a73d29c-73cb0b8-f269e46-686380c) and the master too (LibreOffice 3.6.0alpha0+ Build ID: 08ba87c-49d3d39-e67b1bf-879ce36-638d9c). Best regards. JBF Version of JasperReports used to produce the bugdoc : 4.5.1 Created attachment 58605 [details]
Valgrind report of the crash
Hi Cédric, Please, have a look at this crash. Perhaps the bugdoc is not a valid ODF file, but LO should'nt crash. Best regards. JBF Hi! editeng/source/items/frmitems.cxx:1954 1951: for (int n(0); n != SAL_N_ELEMENTS(aBorders); ++n) 1952: { 1953: editeng::SvxBorderLine* pLine = const_cast< editeng::SvxBorderLine* >( GetLine( aBorders[n] ) ); 1954: pLine->SetStyle( eBorderStyle ); 1956: } Here pLine is a NULL pointer, so calling its member function (SetStyle) causes SIGSEGV. Putting 'if( pLine )' before line 1954 causes LO to load the document. Table boundaries are impossible to hide like you said. Szabolcs Dezsi Szabolcs committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=1489254311e75a379a129bceeab49643ebea04e0 fdo#47436: Fixed crash while opening odt file. Works well in master (version 3.6.0alpha0+ (Build ID: 6a018de)). Thank you. Is this fix backportable to LO 3.5 ? Setting resolved as fixed anyway. Best regards. JBF Dezsi Szabolcs committed a patch related to this issue. It has been pushed to "libreoffice-3-5": http://cgit.freedesktop.org/libreoffice/core/commit/?id=1ad284007d898c68665c91979be3bd326c290ba1&g=libreoffice-3-5 fdo#47436: Fixed crash while opening odt file. It will be available in LibreOffice 3.5.4. *** Bug 49209 has been marked as a duplicate of this bug. *** Verified with LOdev 3.6 (master - 18-May-2012 02h44 x86@6-fast; Build ID: 8b1d29b) under Windows Vista 64. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.