genesys: segfault in the destructor

Hi,

I got abrt report about segfault in frontends scanadf here . The root of segfault is genesys destructor, when it runs a function, which runs malloc() underneath - looks like an allocating of vector in the destructor. Here is the backtrace.

I tested it with sane-backends-1.0.30.

How to reproduce:

$ scanadf -h

The segfault comes after listing available devices:

List of available devices:
    v4l:/dev/video0
    hpaio:/net/laserjet_m1536dnf_mfp?ip=192.168.1.112&queue=false

then scanadf hangs and it segfault after pressing Enter.

The issue isn't device specific, I hit it with HP device and the original reporter with Lexmark.

Would you mind looking into it?

Thank you in advance!


Edited: You get the segfault even when:

$ scanadf -h
Edited by Zdenek Dohnal