[sane-devel] Preview in xscanimage only possible as root

Oliver Schwartz Oliver.Schwartz@gmx.de
Thu, 29 Nov 2001 22:51:48 +0100


Hi,

> > I don't know if it fixes the original problem

O.k., it seems Klaus-Peter Schrage also found the cause for the original 
problem by now: In restore_preview_image(), if xscanimage finds a corrupted 
file with no data, "width" is set to zero, which causes a floating point 
exception in p->image_y = nread/width;

I've commited a fix for preview.c to sane CVS.

Regards,

Oliver