[sane-devel] Xscanimage Exits with Segmentation Fault using HP
5370C
Henning Meier-Geinitz
henning at meier-geinitz.de
Sun Sep 25 16:55:24 UTC 2005
Hi,
On Sun, Sep 25, 2005 at 11:13:56AM -0500, Dan McGhee wrote:
> Just to remind you, I'm not using the version of avision released in
> backends-1.0.16. I'm using Rev. 280 of avision from SVN. It is patched
> with the file Falk Rohsiepe sent me and then Rene posted a patch here
> last month.
I have already looked at Rene's SVN and the patch and there doesn't
seem to be any relevant change in the above mentioned part of the
code.
> I'm really a "noob" at reading code, so right now about the only thing I
> can do is gather and report data. In the version of avision.c that I
> currently have--the patched one--I ran:
>
> 'grep -in -A 5 -B 5 SANE_Word avision.c'
Well, if the size were sizeof(SANE_Word), it would be ok. But it isn't.
Just use an editor on backend/avision.c, find this line:
s->opt[OPT_NUM_OPTS].size = sizeof(SANE_TYPE_INT);
And change it to that one:
s->opt[OPT_NUM_OPTS].size = sizeof (SANE_Word);
Bye,
Henning
More information about the sane-devel
mailing list