Skip Menu |

This queue is for tickets about the Sane CPAN distribution.

Maintainer(s)' notes

This queue is shared by both Sane and sane at the moment. Please make it clear in your bug report which distribution you're addressing.

Report information
The Basics
Id: 71531
Status: open
Priority: 0/
Queue: Sane

People
Owner: Nobody in particular
Requestors: perl [...] pied.nu
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Segfault with Kodak i1440 sanetwain driver
Most unfortunately, I have to work with a Kodak i1440. Kodak has supplied closed source, binary-only 32bit drivers. At least they work. However, they do something that Sane doesn't expect: sane_get_option_descriptor can return an opt->size=0. You don't check for this in your code, and Perl is segfaulting. Adding this before the malloc cures the segfault... for now. if( 0==opt->size ) { XSRETURN_UNDEF; return; }
On Fri Oct 07 15:25:46 2011, GWYN wrote: Show quoted text
> However, they do something that Sane doesn't expect: > sane_get_option_descriptor can return an opt->size=0. You don't check
Thanks for the patch, which is included in 0.04