| Summary: | Opening a zero sized file modifies it on the disk with garbage | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | Rpnpif <rpnpif> |
| Component: | LibreOffice | Assignee: | Maxim Monastirsky <momonasmon> |
| Status: | RESOLVED FIXED | ||
| Severity: | major | CC: | jbfaure, rpnpif |
| Priority: | medium | ||
| Version: | 4.2.5.2 release | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | target:4.2.7 | ||
| Crash report or crash signature: | Regression By: | ||
|
Description
Rpnpif
2014-07-13 08:27:50 UTC
Not reproducible for me with LibreOffice 4.3.1.0.0+ under Ubuntu 14.04 x86-64. I created an empty file named new_test.odt. The file opened by LibreOffice is displayed empty and not changed when I close it without saving it (it is still O sized). Same behavior with a file named with html extension. Best regards. JBF Actually I fixed it for 4.3/master, but didn't backport to 4-2. Maxim Monastirsky committed a patch related to this issue. It has been pushed to "libreoffice-4-2": http://cgit.freedesktop.org/libreoffice/core/commit/?id=70c5401aa3b063d0f275042a48a54f42c1f54c03&h=libreoffice-4-2 fdo#81284 Don't write to zero length files It will be available in LibreOffice 4.2.7. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback. (In reply to comment #3) This patch seems to fix the bug for me (4.2.7 beta). Thank you very much. |