Bug#700089: /usr/bin/localc: Attempt to open empty CSV file with further cancellation corrupts the file
Package: libreoffice-calc
Version: 1:3.5.4+dfsg-4
Severity: normal
File: /usr/bin/localc
Dear Maintainer,
I have a device, which stores the measurement data into the CSV file.
When the file is empty (nothing measured yet), the localc displays
window asking to select the appropriate import filter.
However when I press "cancel" ("anuluj" in the Polish version),
the file gets corrupted - the empty file gets replaced with
file of length of 1536 bytes with binary/unicode data
Steps to repeat:
1. $ measurement.csv
2. $ localc measurement.csv
3. When the Filter Selection window appears, press "Cancel"
4. Check that the measurement.csv file is 1536 bytes long instead of
original 0 bytes.
-- System Information:
Debian Release: 7.0
APT prefers testing
APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.7.5 (SMP w/8 CPU cores; PREEMPT)
Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages libreoffice-calc depends on:
ii libc6 2.13-37
ii libgcc1 1:4.7.2-5
ii libreoffice-base-core 1:3.5.4+dfsg-4
ii libreoffice-core 1:3.5.4+dfsg-4
ii libstdc++6 4.7.2-5
ii lp-solve 5.5.0.13-7
ii uno-libs3 3.5.4+dfsg-4
ii ure 3.5.4+dfsg-4
libreoffice-calc recommends no packages.
libreoffice-calc suggests no packages.
Versions of packages libreoffice-core depends on:
ii fontconfig 2.9.0-7.1
ii fonts-opensymbol 2:102.2+LibO3.5.4+dfsg-4
ii libc6 2.13-37
ii libcairo2 1.12.2-2
ii libcmis-0.2-0 0.1.0-1+b1
ii libcurl3-gnutls 7.26.0-1
ii libdb5.1 5.1.29-5
ii libexpat1 2.1.0-1
ii libexttextcat0 3.2.0-2
ii libfontconfig1 2.9.0-7.1
ii libfreetype6 2.4.9-1.1
ii libgcc1 1:4.7.2-5
ii libglib2.0-0 2.33.12+really2.32.4-3
ii libgraphite2-2.0.0 1.1.3-1
ii libgstreamer-plugins-base0.10-0 0.10.36-1
ii libgstreamer0.10-0 0.10.36-1.1
ii libhunspell-1.3-0 1.3.2-4
ii libhyphen0 2.8.3-2
ii libice6 2:1.0.8-2
ii libicu48 4.8.1.1-10
ii libjpeg8 8d-1
ii libmythes-1.2-0 2:1.2.2-1
ii libneon27-gnutls 0.29.6-3
ii libnspr4 2:4.9.2-1
ii libnspr4-0d 2:4.9.2-1
ii libnss3 2:3.13.6-2
ii libnss3-1d 2:3.13.6-2
ii libpng12-0 1.2.49-1
ii librdf0 1.0.15-1+b1
ii libreoffice-common 1:3.5.4+dfsg-4
ii librsvg2-2 2.36.1-1
ii libsm6 2:1.2.1-2
ii libssl1.0.0 1.0.1c-4
ii libstdc++6 4.7.2-5
ii libx11-6 2:1.5.0-1
ii libxext6 2:1.3.1-2
ii libxinerama1 2:1.1.2-1
ii libxml2 2.8.0+dfsg1-7
ii libxrandr2 2:1.3.2-2
ii libxrender1 1:0.9.7-1
ii libxslt1.1 1.1.26-14
ii uno-libs3 3.5.4+dfsg-4
ii ure 3.5.4+dfsg-4
ii zlib1g 1:1.2.7.dfsg-13
-- no debconf information
ÐÏࡱá