SCM

[#315625] [kvs20xx] segfault when scanning

View Trackers | Bugs | Export CSV

Date:
2017-02-11 18:46
Priority:
3
State:
Open
Submitted by:
Florian Knodt (adlerweb-guest)
Assigned to:
Nobody (None)
Category:
backends (drivers)
Group:
None
Resolution:
None
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

No Followups Have Been Posted

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
File Added7353: kvs20xx-segfault.patch2017-02-11 18:46adlerweb-guest
Powered By FusionForge