Created attachment 99318 [details] The rtf file then generete the error Problem description: Steps to reproduce: 1. Open the file .rtf attached 2. Writer 4.2.2.1 crash with the "i/o general error" 3. .... Current behavior: Expected behavior: Operating System: Windows 8 Version: 4.2.2.1 release
tested under Win7x64 "i/o general error" confirmed under Win7x64 using LibO 4.2.4.2 and older releases up to 4.1.2.3 while I can load the file and see text with LibO 4.1.1.2 hence it's a regression between 4.1.1 and 4.1.2 interestingly WordPad and Apache OpenOffice 4.1 load the file as an empty sheet with no text...
a size of 0 is set on a writer textbox which throws illegalargument due to that, and the exception halts the import of the rtf
Root cause is that the \dpx, \dpy, \dpxsize and \dpysize (old-style RTF shapes) RTF control words don't respect the parser stack and have effect outside their own scope, it turns out, so I need to add an exception for this in the tokenizer.
Miklos Vajna committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=21c11ffe254612ac46aa891addacb0024d5b93f0 fdo#78900 RTF import: allow \dpxsize inside \dptxbxtext 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.
Miklos Vajna committed a patch related to this issue. It has been pushed to "libreoffice-4-3": http://cgit.freedesktop.org/libreoffice/core/commit/?id=c9196ba88cc6262b88cbf8bd1e7af9ae78a3cc5b&h=libreoffice-4-3 fdo#78900 RTF import: allow \dpxsize inside \dptxbxtext It will be available in LibreOffice 4.3. 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.
-4-2 review: https://gerrit.libreoffice.org/9488
Miklos Vajna committed a patch related to this issue. It has been pushed to "libreoffice-4-2": http://cgit.freedesktop.org/libreoffice/core/commit/?id=dba6c0414cdbf744fb99c47dd1a04ba1a6ee3f71&h=libreoffice-4-2 fdo#78900 RTF import: allow \dpxsize inside \dptxbxtext It will be available in LibreOffice 4.2.5. 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.