Bug#309157: gnome-applets: stickynotes applet loses data when
drive is full
Robert McQueen
Robert McQueen <robot101@debian.org>, 309157@bugs.debian.org
Sun, 15 May 2005 01:48:01 +0100
Package: gnome-applets
Version: 2.8.2-1
Severity: grave
Justification: causes non-serious data loss
In the stickynotes_save() function in stickynotes/stickynotes.c, the
xmlSaveFormatFile function is called without checking its return value.
As detailed in http://xmlsoft.org/html/libxml-tree.html#xmlSaveFormatFile,
this function returns -1 if writing the file was unsuccessful. It
should write the new file out to a temporary file alongside the existing
one, and if and only if this was successful, rename() it to the actual
name. Otherwise if the writing fails, the notes file can be truncated and
the old copy of the notes are lost as well as the changes being written.
I've just lost my todo list sticky note...
Regards,
Rob
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.10-alpha2
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Versions of packages gnome-applets depends on:
ii gnome-applets-data 2.8.2-1 Various applets for GNOME 2 panel
ii gnome-panel 2.8.3-1 launcher and docking facility for
ii gstreamer0.8-alsa [g 0.8.8-3 ALSA plugin for GStreamer
ii gstreamer0.8-esd [gs 0.8.8-3 Enlightened Sound Daemon plugin fo
ii gstreamer0.8-oss [gs 0.8.8-3 OSS plugin for GStreamer
ii libapm1 3.2.2-3 Library for interacting with APM d
ii libart-2.0-2 2.3.17-1 Library of functions for 2D graphi
ii libatk1.0-0 1.8.0-4 The ATK accessibility toolkit
ii libbonobo2-0 2.8.1-2 Bonobo CORBA interfaces library
ii libbonoboui2-0 2.8.1-2 The Bonobo UI library
ii libc6 2.3.5-1 GNU C Library: Shared libraries an
ii libgail-common 1.8.4-1 GNOME Accessibility Implementation
ii libgail17 1.8.4-1 GNOME Accessibility Implementation
ii libgconf2-4 2.8.1-5 GNOME configuration database syste
ii libgcrypt11 1.2.0-11 LGPL Crypto library - runtime libr
ii libglade2-0 1:2.4.2-2 library to load .glade files at ru
ii libglib2.0-0 2.6.4-1 The GLib library of C routines
ii libgnome2-0 2.8.1-2 The GNOME 2 library - runtime file
ii libgnomecanvas2-0 2.8.0-1 A powerful object-oriented display
ii libgnomeui-0 2.8.1-3 The GNOME 2 libraries (User Interf
ii libgnomevfs2-0 2.8.4-3 The GNOME virtual file-system libr
ii libgnutls11 1.0.16-13 GNU TLS library - runtime library
ii libgstreamer-plugins 0.8.8-3 Various GStreamer libraries and li
ii libgstreamer0.8-0 0.8.9-2 Core GStreamer libraries, plugins,
ii libgtk2.0-0 2.6.4-1 The GTK+ graphical user interface
ii libgtop2-2 2.6.0-4 Libraries for gtop system monitori
ii libice6 4.3.0.dfsg.1-12.0.1 Inter-Client Exchange library
ii liborbit2 1:2.12.2-1 libraries for ORBit2 - a CORBA ORB
ii libpanel-applet2-0 2.8.3-1 library for GNOME 2 panel applets
ii libpango1.0-0 1.8.1-1 Layout and rendering of internatio
ii libpopt0 1.7-5 lib for parsing cmdline parameters
ii libsm6 4.3.0.dfsg.1-12.0.1 X Window System Session Management
ii libx11-6 6.8.2-10 X Window System protocol client li
ii libxklavier8 1.03-1 X Keyboard Extension high-level AP
ii libxml2 2.6.16-7 GNOME XML library
ii xlibs 4.3.0.dfsg.1-12 X Keyboard Extension (XKB) configu
ii zlib1g 1:1.2.2-4 compression library - runtime
-- no debconf information