Re: ( XSane parameters or buffer bug

From: Nick Lamb (njl98r@ecs.soton.ac.uk)
Date: Thu May 10 2001 - 19:59:03 PDT

  • Next message: Nick Lamb: "Re: EOF buffer overflow with Xsane 0.76"

    On Thu, May 10, 2001 at 09:09:44PM +0200, Oliver Rauch wrote:
    > 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.

    Perhaps you could simply check if the value has changed when
    re-reading the parameters and only generate a new gamma table
    in that case? Defensive programming is in order because a
    frontend will be used with many backends, perhaps ones we will
    never hear of.

    Nick.

    --
    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 - 19:47:12 PDT