Your message dated Sat, 14 Nov 2009 10:33:26 +0000
with message-id <[email protected]>
and subject line Bug#556166: fixed in sane-frontends 1.0.14-9
has caused the Debian Bug report #556166,
regarding xscanimage: Crash by out-of-range value in DPI list with epson2
backend
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
556166: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=556166
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: sane
Version: 1.0.14-8
Severity: important
Tags: patch
xscanimage crashes at startup in gtkglue.c:option_menu_lookup(), called by
gtkglue.c:panel_build(), when trying to create the DPI selection widget.
The DPI list in opt->constraint.word_list contains 32 values from 50 to 2400,
but the initial DPI value is 25. option_menu_lookup() assumes that the
value is in the list, and crashes when it reaches its end.
The scanner is an Epson Perfection 1240U using the epson2 backend.
The attached patch makes xscanimage check that the value is in the list.
-- System Information:
Debian Release: 5.0.3
APT prefers stable
APT policy: (820, 'stable'), (600, 'unstable'), (550, 'testing'), (510,
'experimental'), (500, 'oldstable')
Architecture: i386 (x86_64)
Kernel: Linux 2.6.31-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=de_DE (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash
Versions of packages sane depends on:
ii libatk1.0-0 1.22.0-1 The ATK accessibility toolkit
ii libc6 2.10.1-7 GNU C Library: Shared libraries
ii libcairo2 1.8.8-2 The Cairo 2D vector graphics libra
ii libfontconfig1 2.6.0-3 generic font configuration library
ii libfreetype6 2.3.7-2+lenny1 FreeType 2 font engine, shared lib
ii libgimp2.0 2.6.7-1 Libraries for the GNU Image Manipu
ii libglib2.0-0 2.22.2-2 The GLib library of C routines
ii libgtk2.0-0 2.18.3-1 The GTK+ graphical user interface
ii libpango1.0-0 1.26.0-1 Layout and rendering of internatio
ii libsane 1.0.20-9 API library for scanners
ii zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime
sane recommends no packages.
Versions of packages sane suggests:
ii gimp 2.6.7-1 The GNU Image Manipulation Program
-- no debconf information
--- sane-frontends-1.0.14/src/gtkglue.c 2009-11-13 22:06:04.000000000 +0100
+++ sane-frontends-1.0.14/src/gtkglue.c 2009-11-13 22:26:56.000000000 +0100
@@ -913,6 +913,7 @@
char **str_list;
int i, j;
int num_vector_opts = 0, *vector_opts;
+ int val_in_word_list;
main_hbox = gtk_hbox_new (FALSE, 2);
@@ -1073,13 +1074,23 @@
case SANE_CONSTRAINT_WORD_LIST:
/* use a "list-selection" widget */
num_words = opt->constraint.word_list[0];
+ if (num_words == 0)
+ {
+ fprintf (stderr, "panel_build: empty word list!\n");
+ break;
+ }
+ val_in_word_list = 0;
str_list = malloc ((num_words + 1) * sizeof (str_list[0]));
for (j = 0; j < num_words; ++j)
{
+ if (opt->constraint.word_list[j + 1] == val)
+ val_in_word_list = 1;
sprintf (str, "%d", opt->constraint.word_list[j + 1]);
str_list[j] = strdup (str);
}
str_list[j] = 0;
+ if ( ! val_in_word_list)
+ val = opt->constraint.word_list[1];
sprintf (str, "%d", val);
option_menu_new (parent, title, str_list, str, elem,
dialog->tooltips, opt->desc,
--- End Message ---
--- Begin Message ---
Source: sane-frontends
Source-Version: 1.0.14-9
We believe that the bug you reported is fixed in the latest version of
sane-frontends, which is due to be installed in the Debian FTP archive:
sane-frontends_1.0.14-9.diff.gz
to main/s/sane-frontends/sane-frontends_1.0.14-9.diff.gz
sane-frontends_1.0.14-9.dsc
to main/s/sane-frontends/sane-frontends_1.0.14-9.dsc
sane_1.0.14-9_amd64.deb
to main/s/sane-frontends/sane_1.0.14-9_amd64.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Julien BLACHE <[email protected]> (supplier of updated sane-frontends package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Sat, 14 Nov 2009 10:46:58 +0100
Source: sane-frontends
Binary: sane
Architecture: source amd64
Version: 1.0.14-9
Distribution: unstable
Urgency: low
Maintainer: Julien BLACHE <[email protected]>
Changed-By: Julien BLACHE <[email protected]>
Description:
sane - scanner graphical frontends
Closes: 556166
Changes:
sane-frontends (1.0.14-9) unstable; urgency=low
.
* debian/control:
+ Bump Standards-Version to 3.8.3 (no changes).
.
* debian/patches/06_word_list_fix.dpatch:
+ Added; fix word list handling when the current value is not part of the
list (closes: #556166).
Checksums-Sha1:
34319e498e9514b6f079d0e3e6816b9f06a1c7be 1083 sane-frontends_1.0.14-9.dsc
0f8613a3551ac130d624492db87165bde56ba1e9 11689 sane-frontends_1.0.14-9.diff.gz
a37f620388dfb91a802e8495f1b4da08da635fb5 118442 sane_1.0.14-9_amd64.deb
Checksums-Sha256:
f7488b03da551112b33a902b2a1138a0152bbc128868e836a79d8972f9d635a5 1083
sane-frontends_1.0.14-9.dsc
4cf1d001c87038b261b98fd215387535d92f6cfb4c4e64b1daaacc7fb0e063e3 11689
sane-frontends_1.0.14-9.diff.gz
a6cd6ec594d92c49dd152494a76c6a2361acc8b28fc2f4d39cfa92ecdf32e462 118442
sane_1.0.14-9_amd64.deb
Files:
06433400ec4820924642f64a4064999c 1083 graphics optional
sane-frontends_1.0.14-9.dsc
a8db9745f531b58d4066de82a09af0ce 11689 graphics optional
sane-frontends_1.0.14-9.diff.gz
662ec29980065ad0e1330da3c7935a26 118442 graphics optional
sane_1.0.14-9_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iD8DBQFK/n34zWFP1/XWUWkRAk+QAKCSfuIDBelYDrvuAUnTue4/NgAYTQCfcqdO
FDti3ndUS/UmsVl74IgsqWM=
=LA4i
-----END PGP SIGNATURE-----
--- End Message ---