Re: ( XSane parameters or buffer bug

From: Oliver Rauch (oliver.rauch@rauch-domain.de)
Date: Thu May 10 2001 - 12:09:44 PDT

  • Next message: Sam .: "red and green reversed"

    mh wrote:
     
    > If the backend doesn't return correct values before a call to sane_start(),
    > xsane.gamma_data_red (...blue,...green) might have the wrong (array-)size or
    > even be 0, because you don't update these values after sane_start().
    >
    > Or am I wrong again?

    Hi Michael,

    you are right.
    I did take a look at xsane.
    At first xsane can expect that the data depth is correct in
    the parameter struct because there is no reason at all why
    the backend does not now the bit depth before sane_start is
    called and so the backend has to set the correct value when
    it works conform to the SANE standard.

    Although it is not nice that xsane produces a segfault it
    makes sense to create the gamma table before sane_start is
    called. The creation of the gamma tables can take some time
    and it is not good to interrupt the scanning for this
    what can happen on slow computers.

    I will add a bugfix (some day).

    Bye
    Oliver

    -- 
    Homepage:	http://www.rauch-domain.de
    sane-umax:	http://www.rauch-domain.de/sane-umax
    xsane:		http://www.xsane.org
    E-Mail:		mailto:Oliver.Rauch@rauch-domain.de
    

    -- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com



    This archive was generated by hypermail 2b29 : Thu May 10 2001 - 11:55:24 PDT