| Summary: | File over-read parsing XLS with mixed wide- and narrow-character strings | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | rennie.degraaf |
| Component: | Calc | Assignee: | Not Assigned <libreoffice-bugs> |
| Status: | NEW --- | ||
| Severity: | normal | CC: | ilmari.lauhakangas, rennie.degraaf |
| Priority: | medium | Keywords: | filter:xls |
| Version: | Inherited From OOo | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Crash report or crash signature: | Regression By: | ||
| Attachments: |
File that reproduces the bug
XLS file with mixed string, corrected length String block 4 header String block 4 end Bug in Calc |
||
|
Description
rennie.degraaf
2022-03-10 23:33:13 UTC
Created attachment 178786 [details]
File that reproduces the bug
Created attachment 178787 [details]
XLS file with mixed string, corrected length
Use attachment 178786 [details] to reproduce the bug. Attachment attachment 178787 [details] is a version of the file with the string length corrected; Calc appears to handle it correctly. Created attachment 178788 [details]
String block 4 header
This screen capture from my OLE hex editor shows the beginning of string block 4. The selected byte is the narrow/wide character flag. 0 indicates narrow character data, 1 indicates wide.
Created attachment 178789 [details]
String block 4 end
This screen capture from my OLE hex editor shows the end of string block 4 with the additional file data that Calc loads as part of the string.
Created attachment 178790 [details]
Bug in Calc
This screen capture of Calc shows the end of the string that it loads with the extraneous data.
Also confirmed on Version: 6.4.7.2 Build ID: 1:6.4.7-0ubuntu0.20.04.2 CPU threads: 2; OS: Linux 5.4; UI render: default; VCL: kf5; Locale: en-US (en_US.UTF-8); UI-Language: en-US Calc: threaded For comparison, Gnumeric 1.12.46 loads the file without displaying an error to the user, but appears to fail to load the file's string table and dumps a couple warning messages to the console. Also confirmed on the oldest release that I had installed on an old VM: Version: 5.1.6.2.0+ Build ID: 5.1.6.2-8.fc24 CPU Threads: 1; OS Version: Linux 4.11; UI Render: default; Local: en-US (en_US.UTF-8); Calc: group Apache OpenOffice 4.1.11 has the same problem. This bug is probably very old. Confirmed Arch Linux 64-bit, X11 Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 8389048cb41291917449e87b2901d6133bce3373 CPU threads: 8; OS: Linux 6.0; UI render: default; VCL: kf5 (cairo+xcb) Locale: fi-FI (fi_FI.UTF-8); UI: en-US Calc: threaded Jumbo Built on 21 December 2022 |