[sane-devel] Bug in scanimage.c + Patch

Henning Meier-Geinitz henning at meier-geinitz.de
Wed Mar 20 17:57:31 GMT 2002


Hi,

On Wed, Mar 20, 2002 at 05:27:38PM +0100, Klaas Freitag wrote:
> I think there is a small bug in the code handling the -f option. IMHO it mallocs
> a one byte to small buffer for a strcpy action. I could reproduce some crashes
> which disappeared after having applied the attached patch.

Thanks, but it looks like Abel already fixed this in CVS shortly after
the release of 1.0.7:

2002-02-16 Abel Deuring <a.deuring at satzbau-gmbh.de>:
  * frontend/scanimage.c / part for the "-f" command line option:
    replaced the vprintf call with a loop of printf calls; fixed
    a "too stingy" malloc 

Bye,
  Henning



More information about the sane-devel mailing list