Bug 159187 - libreoffice-write cause corrupted memory that mess up your document and my have sec issue
Summary: libreoffice-write cause corrupted memory that mess up your document and my ha...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.0.6.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, dataLoss, regression
Depends on:
Blocks: Writer-Tables Save
  Show dependency treegraph
 
Reported: 2024-01-15 07:30 UTC by GroovyMan
Modified: 2024-02-02 12:36 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Doc containing bad structure (28.66 KB, application/vnd.oasis.opendocument.text)
2024-01-25 17:46 UTC, GroovyMan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description GroovyMan 2024-01-15 07:30:46 UTC
Description:
(This bug has been also filed on fedoras buglist)

I am trying to write a document with libreoffice-writer, in order to create a pdf document with embedded hyperlinks, that contains hyperlinks like this:

   file:///document/.../sheet.ods#tabname!E12   

Later, the created document will be saved on a cdrom or usb-stick. The end-user will open this device and can open PDF and will also be able to use the links, in order to jump to the target document.

When i put these hyperlinks into a table inside my document, the contents of the table gets messed up. Part of the cells will be deleted or overwritten with other crippeld cells. Your document becomes unsusable.


Steps to Reproduce:
1.create a odt docuemnt and insert a table
2.put hyperlinks into a row of cells that use the following format file:///document/.../sheet.ods#tabname!E12
3.continue to insert hyperlinks and wait a bit to see how your table gets messed up

Actual Results:
The documente becomes broken.

Expected Results:
I expect a stable office applicaiton!




Reproducible: Always


User Profile Reset: No

Additional Info:
See same ticket on RedHatBuzilla (Fedora) Bug 2258410
Comment 1 Buovjaga 2024-01-25 16:55:25 UTC
Please attach an example document, so we can see the messed up state.

Set to NEEDINFO.
Change back to UNCONFIRMED after you have provided the document.
Comment 2 GroovyMan 2024-01-25 17:46:30 UTC
Created attachment 192165 [details]
Doc containing bad structure
Comment 3 GroovyMan 2024-01-25 17:47:06 UTC
I extreacted a the problematic structure.
Comment 4 Stéphane Guillou (stragu) 2024-02-01 14:51:44 UTC
Reproduced:
1. Open attachment
2. Insert row in between the two rows with links
3. Save and reload

Result: both links replaced with "0.00 €"

Version: 24.2.0.3 (X86_64) / LibreOffice Community
Build ID: da48488a73ddd66ea24cf16bbc4f7b9c08e9bea1
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 2cac2ee38445c19c9281f54c2b961bbc9149cc00
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Also reproduced in 7.0.6.2, but not in 6.4.0.3.
Comment 5 raal 2024-02-02 12:36:42 UTC
This seems to have begun at the below commit in bibisect repository/OS linux-64-6.5.
Adding Cc: to Maxim Monastirsky ; Could you possibly take a look at this one?
Thanks
 131b23e24d6a2731df74afa57acffe61ab1ee50c is the first bad commit
commit 131b23e24d6a2731df74afa57acffe61ab1ee50c
Author: Jenkins Build User <tdf@pollux.tdf>
Date:   Thu Feb 27 19:26:45 2020 +0100

    source 59ace23c367f83491a37e844d16f7d716eff6346

89551: tdf#101710 Fix invalid style:data-style-name attribute | https://gerrit.libreoffice.org/c/core/+/89551