https://bugs.documentfoundation.org/show_bug.cgi?id=97412
Bug ID: 97412
Summary: Writer can't handle corrupt docx files correctly
Product: LibreOffice
Version: 5.0.5.1 rc
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: LibreOffice
Assignee: [email protected]
Reporter: [email protected]
If part of the docx file is corrupted (altered or chopped) then writer can't
open the file and can't repair the file.
If file is fixed manually:
# mkdir tmp
# cd tmp
# unzip file_corrupt.docx
# zip -9r ../file_fixed.docx *
Then writer opens file_fixed.docx (works, at least the most times)
Why? Because lots of "docx" files contains images or not crucial information
that can be "fixed" (a glitch is inevitable...) and get the file work again!
Somebody give me a docx that was corrupted and i restored the file using this
method ; Should be great if libreoffice check the file for corrupt and then try
to restore the file (even if some part get glitched) ; Show "Warning! Some
information should be inevitable lost" message will rock!
For the problem file the command "unzip -t file.docx" give me this error:
....
testing: word/embeddings/oleObject1.bin
error: invalid compressed data to inflate
file #9: bad zipfile offset (local header sig): 746694
(attempting to re-compensate)
......
And continue correctly all others files in file.docx
Reproduce Error:
* Create a docx whit some text and image
* Using a Hex editor change some part of the file (string of 20 bytes or more)
* Open libreoffice writer and crash!
* Restore the file using the above method
* Open libreoffice writer and works (the image get glitched, but you get all
the information again, replace the image and go!)
I found another related error! If you change Only 1 byte in docx file using a
hex editor then the zip file get "slightly" corrupted whit this message in the
test in the unzip command:
# unzip -t file.docx
....
testing: word/media/image1.jpeg bad CRC f13f46e1 (should be b4564b78)
....
If you open with Writer then NO MESSAGE IS DISPLAYED, NO WARNING! NOTHING IS
SHOW TO THE USER ; NO REPAIR PROCESS IS STARTED!
Instead its open the file like is should be all "OK?" but you see the image is
glitched (not all "OK!?").
I'am using:
* Linux, Debian (unstable)
* libreoffice-writer 1:5.0.5~rc1-1
* libreoffice 1:5.0.5~rc1-1
Sory my Bad Ingles :-P
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs