Created attachment 182974 [details] Original bugdoc Steps to reproduce the problem: 1) Open the attached document on Windows. It contains an embedded object (PDF), so make sure that Adobe Acrobat Reader is installed. 2) Double-click on the embedded object to open it in Adobe Acrobat. 3) Close Acrobat. 4) Save the document. 5) Close & open the document. Expected result: the preview is similar to the initial one, since no change was made. Actual result: the preview is broken.
Created attachment 182975 [details] Corrupted document after save. How it looks after saving. The documents can be checked also on Linux, but the problematic codepath to corrupt it is Windows-specific.
Miklos Vajna committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/0bd83ba4c40bd7c3ebd3f098421c23bc9ced7b9e tdf#151470 svtools: prevent storing broken graphic of embedded objects It will be available in 7.5.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://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-7-4": https://git.libreoffice.org/core/commit/165a0ea595b86c448396bb3826513d54f84640aa tdf#151470 svtools: prevent storing broken graphic of embedded objects It will be available in 7.4.3. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.