[Libreoffice-bugs] [Bug 141320] New: [RTF] .rtf Rich Text: broken file error due to inserted formula

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Mar 29 11:26:20 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=141320

            Bug ID: 141320
           Summary: [RTF] .rtf Rich Text: broken file error due to
                    inserted formula
           Product: LibreOffice
           Version: 7.0.5.2 release
          Hardware: All
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: mail-bugzilla at fluglicht.com

Description:
Using a formula in a Rich Text (.rtf) document can lead to a broken file.
LibreOffice throws a File format error, when trying to open the document
afterwards. The Reason seems to be, that under certain circumstances, a
parenthesis mismatch is produced in the file, leaving an open parenthesis from
the formula object in the rich text syntax (see reproduction steps below).

Steps to Reproduce:
1. Insert a formula (via Insert > Object > Formula)
2. Save document as RTF
3. Remove the formula using backspace
4. Undo the removal
5. Save and close document
6. Opening document throws file format error, due to syntax error in the file.

Actual Results:
File format error found at 19,7
/build/libreoffice-still/src/libreoffice-7.0.5.2/writerfilter/source/rtftok/rtfdocumentimpl.cxx:817(row,col).

Expected Results:
Keep the syntax intact.


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
Version: 7.0.5.2
Build ID: 00(Build:2)
CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: kf5
Locale: de-DE (en_GB.UTF-8); UI: en-GB
7.0.5-1
Calc: threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210329/2866c577/attachment.htm>


More information about the Libreoffice-bugs mailing list