Created attachment 119367 [details] RTF file of a bank statement (personal information removed) Trying to open the attached file produces an error dialog with following content: General Error. General input/output error. The file can be opened by Wordpad but looks scrambled. MS Word opens it properly.
This file crashes Version: 5.1.0.0.alpha1+ Build ID: 83ef294dddf3b1ab5cd5f91a792a7d9413a08f1f TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2015-09-20_07:00:46 crash in LO 4.4.2, linux
Created attachment 119398 [details] gdbtrace
On pc Debian x86-64 with master sources updated today, I could reproduce this, here's the relevant part with enable-dbgutil: #4 0x00002aaad65b3fd1 in com::sun::star::uno::Reference<com::sun::star::beans::XPropertySet>::operator->() const (this=0x2dcc3d0) at /home/julien/compile-libreoffice/libreoffice/include/com/sun/star/uno/Reference.h:402 #5 0x00002aaad65983f9 in writerfilter::rtftok::RTFDocumentImpl::dispatchValue(writerfilter::rtftok::RTFKeyword, int) (this=0x2bfedd0, nKeyword=writerfilter::rtftok::RTF_DPPTY, nParam=1232) at /home/julien/compile-libreoffice/libreoffice/writerfilter/source/rtftok/rtfdocumentimpl.cxx:4664 #6 0x00002aaad660906f in writerfilter::rtftok::RTFTokenizer::dispatchKeyword(rtl::OString&, bool, int) (this=0x2c05cc0, rKeyword="dppty", bParam=true, nParam=1232) at /home/julien/compile-libreoffice/libreoffice/writerfilter/source/rtftok/rtftokenizer.cxx:336 #7 0x00002aaad66087ae in writerfilter::rtftok::RTFTokenizer::resolveKeyword() (this=0x2c05cc0) at /home/julien/compile-libreoffice/libreoffice/writerfilter/source/rtftok/rtftokenizer.cxx:269
Already crashes in 4.4.5 -> not a regression in 5.0.x
Oliver Specht committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=f3162ccd18cd31323e4a0c18648332d6a493e4c7 tdf#94835: crash while loading RTF with \dppolygon token fixed It will be available in 5.1.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Created attachment 120216 [details] A file which is not displayed properly
Created attachment 120217 [details] A correct rendering of the file
Created attachment 120218 [details] An incorrect rendering of the file by LibreOffice
The crash is fixed in master. I tested this version: http://dev-builds.libreoffice.org/daily/master/Win-x86@42/current/libo-master~2015-10-31_09.07.26_LibreOfficeDev_5.1.0.0.alpha1_Win_x64.msi However the file is not displayed correctly. I attached a file with a bit more content, along with approximately correct conversion to PDF by https://online2pdf.com/text-to-pdf and an incorrect conversion to PDF by LibreOffice. Is this incorrect rendering a known issue?
(In reply to Dženan Zukić from comment #9) > The crash is fixed in master. I tested this version: > http://dev-builds.libreoffice.org/daily/master/Win-x86@42/current/libo- > master~2015-10-31_09.07.26_LibreOfficeDev_5.1.0.0.alpha1_Win_x64.msi > > However the file is not displayed correctly. I attached a file with a bit > more content, along with approximately correct conversion to PDF by > https://online2pdf.com/text-to-pdf and an incorrect conversion to PDF by > LibreOffice. Is this incorrect rendering a known issue? Please open new bug.
Oliver, would you be so kind to backport this to 5.0? Thank you.