Package: xsane Version: 0.999-3ubuntu1 Severity: normal Tags: patch xsane doesn’t initialise the icm_profile field of Image_info structs, and hence when saving edited images, it can write bogus information into this field, which causes some readers to barf, e.g. gthumb can no longer read the output files.
The patch below fixes this in the case that I tested, though there may well be more. --- xsane-0.999/src/xsane-save.c 2017-06-09 11:23:51.000000000 +0100 +++ xsane-0.999-rrt/src/xsane-save.c 2017-06-09 11:19:00.000587262 +0100 @@ -427,6 +427,8 @@ char buf[TEXTBUFSIZE]; int items_done; + memset(image_info, '\0', sizeof(Image_info)); + fgets(buf, sizeof(buf)-1, file); DBG(DBG_info, "filetype header :%s", buf); ---patch ends--- I guess this should go upstream, but upstream’s website appears to be years out of date (it doesn’t mention release 0.999); I hope the package maintainers have a better idea than I do how to upstream the fix (and of course, perhaps improve it). -- System Information: Debian Release: stretch/sid APT prefers xenial-updates APT policy: (500, 'xenial-updates'), (500, 'xenial-security'), (500, 'xenial'), (100, 'xenial-backports') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.4.0-78-generic (SMP w/4 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages xsane depends on: ii libc6 2.23-0ubuntu7 ii libgimp2.0 2.8.16-1ubuntu1.1 ii libglib2.0-0 2.48.2-0ubuntu1 ii libgtk2.0-0 2.24.30-1ubuntu1 ii libjpeg8 8c-2ubuntu8 ii liblcms2-2 2.6-3ubuntu2 ii libpng12-0 1.2.54-1ubuntu1 ii libsane 1.0.25+git20150528-1ubuntu2.16.04.1 ii libtiff5 4.0.6-1ubuntu0.2 ii xsane-common 0.999-3ubuntu1 ii zlib1g 1:1.2.8.dfsg-2ubuntu4.1 Versions of packages xsane recommends: ii chromium-browser [www-browser] 58.0.3029.110-0ubuntu0.16.04.1281 ii cups-client 2.1.3-4ubuntu0.2 ii firefox [www-browser] 53.0.3+build1-0ubuntu0.16.04.2 ii links [www-browser] 2.12-1 ii lynx [www-browser] 2.8.9dev8-4ubuntu1 ii w3m [www-browser] 0.5.3-26ubuntu0.1 Versions of packages xsane suggests: ii gimp 2.8.16-1ubuntu1.1 ii gocr 0.49-2 ii gv 1:3.7.4-1 pn hylafax-client | mgetty-fax <none> ii tesseract-ocr 3.04.01-4 -- no debconf information