# 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"
  - Previous message: Karl Heinz Kremer: "Re: red and green reversed"
  - In reply to: Oliver Rauch: "Re: ( XSane parameters or buffer bug"
  - Next in thread: Oliver Rauch: "Re: ( XSane parameters or buffer bug"
  - Next in thread: Henning Meier-Geinitz: "Re: EOF detection"
  - Reply: Oliver Rauch: "Re: ( XSane parameters or buffer bug"
  - Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

  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

  - Next message: Nick Lamb: "Re: EOF buffer overflow with Xsane 0.76"
  - Previous message: Karl Heinz Kremer: "Re: red and green reversed"
  - In reply to: Oliver Rauch: "Re: ( XSane parameters or buffer bug"
  - Next in thread: Oliver Rauch: "Re: ( XSane parameters or buffer bug"
  - Next in thread: Henning Meier-Geinitz: "Re: EOF detection"
  - Reply: Oliver Rauch: "Re: ( XSane parameters or buffer bug"
  - Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

  This archive was generated by hypermail 2b29 : Thu May 10 2001 - 19:47:12 PDT