Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1042944

Bug#980311: libsane backend 'gt68xx' model string uninitialized (affects XSane operation)

From Christian Hilberg <hilberg@kernelconcepts.de>
Newsgroups linux.debian.bugs.dist
Subject Bug#980311: libsane backend 'gt68xx' model string uninitialized (affects XSane operation)
Date 2021-01-17 17:50 +0100
Message-ID <Byjpw-1Js-5@gated-at.bofh.it> (permalink)
Organization kernel concepts

Show all headers | View raw


Package: libsane1
Version: 1.0.31-4

On Debian/Buster with libsane 1.0.27-3.2 as well as on Bullseye with
libsane1 1.0.31-4 I observe the following (Arch: AMD64).

Using a Plustek OpticSlim 2400+ USB scanner with the gt68xx SANE backend
works. The scanner is:

$> lsusb | grep -i plustek
Bus 005 Device 003: ID 07b3:0454 Plustek, Inc. 

However, the "model" name as reported by 'scanimage -L' is broken:

$> scanimage -L
device `gt68xx:libusb:005:003' is a Plustek �_
                                              ~�U flatbed scanner

The breakage looks different every time. I have not experienced a segfault
yet. Looks a lot like an uninitialized buffer or a pointer not being dereferenced.

XSane saves the current scan settings as per reported vendor and model name,
so for each time it uses that scanner, it sees a different vendor/model string
and therefore "forgets" the latest settings.


My /etc/sane.d/gt68xx.conf for the OpticSlim (vendor/model added over the
packaged version) has:

##############################################################################
# Autodetect Plustek OpticSlim 2400 plus
usb 0x07b3 0x0454
override "plustek-opticslim-2400"
vendor "Plustek"
model "OpticSlim 2400 Plus"


I'm sure this is the correct entry, since the USB vendor/product IDs match.
Changing the "vendor" string properly gets propagated through to the scanimage
output, while changing "model" does not. Even removing the "vendor" and "model"
entries from gt68xx.conf leads to the same behaviour.

I don't think the scanner firmware file matters here, but for completeness' sake,
it is this one:

$> md5sum /usr/share/sane/gt68xx/cis3R5B1.fw 
d5984f6a2c984af60c88e9f8c84ba195  /usr/share/sane/gt68xx/cis3R5B1.fw

I'll gladly provide further information if needed.


-- 

Back to linux.debian.bugs.dist | Previous | Next | Find similar | Unroll thread


Thread

Bug#980311: libsane backend 'gt68xx' model string uninitialized (affects XSane operation) Christian Hilberg <hilberg@kernelconcepts.de> - 2021-01-17 17:50 +0100

csiph-web