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

Henning Meier-Geinitz henning@meier-geinitz.de
Wed, 20 Mar 2002 18:57:31 +0100


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@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