Bug 157386 - Writer crash when try to open a DOC file
Summary: Writer crash when try to open a DOC file
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.3.0.0.alpha1+
Hardware: x86-64 (AMD64) Windows (All)
: high major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, filter:doc, regression
Depends on:
Blocks: Password-Protected
  Show dependency treegraph
 
Reported: 2023-09-23 02:28 UTC by wind_wu
Modified: 2024-02-16 22:23 UTC (History)
7 users (show)

See Also:
Crash report or crash signature: ["SwFrame::FindPageFrame()"]


Attachments
OAHSPE_Standard_Edition_for_Large_typeface_printing (23.38 MB, application/msword)
2023-09-24 02:21 UTC, wind_wu
Details
this file can be opened by Libreoffice Writer 7.6.1.2 x64 with no password (12.08 MB, application/msword)
2023-09-24 02:23 UTC, wind_wu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description wind_wu 2023-09-23 02:28:15 UTC
Description:
when try to open a word doc file(download from below link), Libreoffice Writer v7.6.1.2 crashed.
Download Link is valid for 30 days:
https://cowtransfer.com/s/4663447680944c

Steps to Reproduce:
1.Download this doc file from here: https://cowtransfer.com/s/4663447680944c
2.Open the MS Word doc file. 
3. Libreoffice Writer 7.6.1.2 crashed.

Actual Results:
Libreoffice crashed.

Expected Results:
This Word doc opened normally with Libreoffice 5.4.7.2 x64, but the latest Libreoffice 7.6.1.2 x64 will crash.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 7.6.1.2 (X86_64) / LibreOffice Community
Build ID: f5defcebd022c5bc36bbb79be232cb6926d8f674
CPU threads: 8; OS: Windows 10.0 Build 17763; UI render: Skia/Raster; VCL: win
Locale: zh-CN (en_US); UI: zh-CN
Calc: CL threaded
Comment 1 m_a_riosv 2023-09-23 15:10:28 UTC
Seems it is an encrypted file, at least Word ask for the password.
Reproducible with
Version: 7.4.7.2 (x64) / LibreOffice Community
Build ID: 723314e595e8007d3cf785c16538505a1c878ca5
CPU threads: 16; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: es-ES Calc: CL

Regression from
Version: 7.2.7.2 (x64) / LibreOffice Community
Build ID: 8d71d29d553c0f7dcbfa38fbfda25ee34cce99a2
CPU threads: 16; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: es-ES Calc: CL
Comment 2 BogdanB 2023-09-23 19:02:38 UTC
We need a file to be uploaded to this bug (See Add an attachment button), in order to be tested, if the time until this is solved is greater than 90 days. You need to be sure the document doesn't contain private data.
Comment 3 wind_wu 2023-09-24 02:16:11 UTC
(In reply to m.a.riosv from comment #1)
> Seems it is an encrypted file, at least Word ask for the password.
> Reproducible with
> Version: 7.4.7.2 (x64) / LibreOffice Community
> Build ID: 723314e595e8007d3cf785c16538505a1c878ca5
> CPU threads: 16; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL:
> win
> Locale: es-ES (es_ES); UI: es-ES Calc: CL
> 
> Regression from
> Version: 7.2.7.2 (x64) / LibreOffice Community
> Build ID: 8d71d29d553c0f7dcbfa38fbfda25ee34cce99a2
> CPU threads: 16; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL:
> win
> Locale: es-ES (es_ES); UI: es-ES Calc: CL

The file without password is here(download link below), it can be opened by Libreoffice Writer 7.6.1.2 x64 on Windows 10 OS:
OAHSPE_Standard_Edition_for_Screen_Reading.doc
https://cowtransfer.com/s/12bfc3071d374e

The problem is that the Libreoffice Writer 7.6.1.2 x64 crashed before there's any prompt for a password when try to open the OAHSPE_Standard_Edition_for_Large_typeface_printing.doc file as first reported yesterday.
Comment 4 wind_wu 2023-09-24 02:21:15 UTC
Created attachment 189787 [details]
OAHSPE_Standard_Edition_for_Large_typeface_printing

Usually if you try to open this encrypted doc file, there would be a prompt for a password, in my test case, the Libreoffice Writer 7.6.1.2 x64 simply crashed before there's any such prompt for a password window.

Crashed version information:
Version: 7.6.1.2 (X86_64) / LibreOffice Community
Build ID: f5defcebd022c5bc36bbb79be232cb6926d8f674
CPU threads: 8; OS: Windows 10.0 Build 17763; UI render: Skia/Raster; VCL: win
Locale: zh-CN (en_US); UI: zh-CN
Calc: CL threaded
Comment 5 wind_wu 2023-09-24 02:23:02 UTC
(In reply to BogdanB from comment #2)
> We need a file to be uploaded to this bug (See Add an attachment button), in
> order to be tested, if the time until this is solved is greater than 90
> days. You need to be sure the document doesn't contain private data.

Hello, I've just uploaded the file which needs a password to open. The Libreoffice 7.6.1.2 x64 simply crashed before there's any such prompt for a password.
Comment 6 wind_wu 2023-09-24 02:23:55 UTC
Created attachment 189788 [details]
this file can be opened by Libreoffice Writer 7.6.1.2 x64 with no password
Comment 7 wind_wu 2023-09-27 23:30:48 UTC
The MS Word doc file with password protection will also crash the latest 7.6.2.1 x64 version to crash. 

Version: 7.6.2.1 (X86_64) / LibreOffice Community
Build ID: 56f7684011345957bbf33a7ee678afaf4d2ba333
CPU threads: 8; OS: Windows 10.0 Build 17763; UI render: Skia/Raster; VCL: win
Locale: zh-CN (en_US); UI: zh-CN
Calc: CL threaded
Comment 8 m_a_riosv 2023-09-28 20:18:47 UTC
For both files, MSWord ask for password.

Meanwhile, LibreOffice open the one without password, and crash for the other one.
Comment 9 wind_wu 2023-09-29 02:53:27 UTC
(In reply to m.a.riosv from comment #8)
> For both files, MSWord ask for password.
> 
> Meanwhile, LibreOffice open the one without password, and crash for the
> other one.

I don't have any Microsoft Office suite or stand-alone Word application installed on my computer.
Comment 10 Steven Casey 2023-11-23 07:08:29 UTC
Regression introduced by:

https://git.libreoffice.org/core/+/4c31b4ef2083087a822c3ae648fd09acc67d2f88%5E%21
	
author	Attila Szűcs <szucs.attila3@nisz.hu>	Wed Sep 08 15:51:16 2021 +0200
committer	László Németh <nemeth@numbertext.org>	Tue Nov 02 16:31:24 2021 +0100
tree 9dd046549b87431e4cab702cb183b54390908898
parent 83298077a4cd577860e2114b429a2d413c3ea10c 

Bisected with: Win64-7.3

Adding CC: to Attila Szűcs
Comment 11 Buovjaga 2023-11-23 07:10:40 UTC
I verified the bibisect with Win 7.3 repo with attachment 189787 [details]. The good result does not ask for a password, though.
Comment 12 wind_wu 2023-11-24 05:22:14 UTC
The latest version 7.6.3.2 crashed while trying to open this DOC file. I'm expecting the regression to be fixed before the new year.

Version: 7.6.3.2 (X86_64) / LibreOffice Community
Build ID: 29d686fea9f6705b262d369fede658f824154cc0
CPU threads: 8; OS: Windows 10.0 Build 17763; UI render: Skia/Raster; VCL: win
Locale: zh-CN (en_US); UI: en-GB
Calc: CL threaded
Comment 13 wind_wu 2023-12-07 13:41:42 UTC
The latest v7.6.4.1 also crashed while trying to open password-OAHSPE_Standard_Edition_for_Large_typeface_printing.doc file.

Version: 7.6.4.1 (X86_64) / LibreOffice Community
Build ID: e19e193f88cd6c0525a17fb7a176ed8e6a3e2aa1
CPU threads: 8; OS: Windows 10.0 Build 17763; UI render: Skia/Raster; VCL: win
Locale: zh-CN (en_US); UI: en-GB
Calc: CL threaded
Comment 14 Tex2002ans 2024-02-16 22:23:56 UTC
I CRASHED on comment 4's attachment:

- https://crashreport.libreoffice.org/stats/crash_details/14b3fdbf-1a74-4ee6-9f93-838ac3dcde91

and I was able to open up comment 6's attachment fine:

Version: 24.2.0.3 (X86_64) / LibreOffice Community
Build ID: da48488a73ddd66ea24cf16bbc4f7b9c08e9bea1
CPU threads: 8; OS: Windows 10.0 Build 22631; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded