SCM

[#315625] [kvs20xx] segfault when scanning

View Trackers | Bugs | Export CSV

Date:
2017-02-11 18:46
Priority:
3
State:
Closed
Submitted by:
Florian Knodt (adlerweb-guest)
Assigned to:
Olaf Meeuwissen (olaf-guest)
Category:
backends (drivers)
Group:
None
Resolution:
Fixed
Summary:
[kvs20xx] segfault when scanning

Detailed description
I am using a Panasonic/Matsushita KV-S2026C via USB every once in a while. With current sane/kernel (1.0.25/git trunk e3ed043500e786724cc77fdd0565993e878a51fc) the scanner is detected but trying to scan causes a segmentation fault.

Error occours in sane_open at "for (i = 0; devlist[i]; i++)"

I modified the driver according to the workings of a fujitsu one and got the scanner working for me again (diff attached). I am not really into C and think there are more checks missing, but this might be a start.

If additional logs are required let me know

Followups: Sort comments antichronologically

Message
Date: 2017-05-06 03:34
Sender: Olaf Meeuwissen

I just pushed a fix for this in f3f8afb08 modeling my changes after the code in kvs40xx.c.

Attached Files:

Attachments:
Size Name Date By Download
2 KiBkvs20xx-segfault.patch2017-02-11 18:46adlerweb-guestkvs20xx-segfault.patch

Changes:

Field Old Value Date By
ResolutionNone2017-05-06 03:34olaf-guest
status_idOpen2017-05-06 03:34olaf-guest
close_dateNone2017-05-06 03:34olaf-guest
assigned_tonone2017-05-06 03:34olaf-guest
File Added7353: kvs20xx-segfault.patch2017-02-11 18:46adlerweb-guest
Powered By FusionForge