# some backends return invalid pointers

From: Oliver Rauch (oliver.rauch@Wolfsburg.DE)
Date: Sun Feb 20 2000 - 10:37:10 PST

- Next message: Oliver Rauch: "Re: Xsane-0.55: scan resolution selection (Epson 1200S, CVS Sane)"
  - Previous message: Bill Wohler: "Re: New CVS snapshot 20000213"
  - Next in thread: Chris Pinkham: "Re: some backends return invalid pointers"
  - Reply: Chris Pinkham: "Re: some backends return invalid pointers"
  - Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

  Hi,

  some backends do return invalid pointers when sane_get_option_descriptor
  is called with a negative option (if only tests for <max_options and not for >=0).

  Although xsane will have no problems with that with the next version (0.57)
  it is not nice if the frontend gets an invalid pointer. xscanimage and xsane
  do use the option number -1 to define a not supported well known option.

  Please could every backend author make sure that only a valid pointer or NULL
  is returned.

  Bye
  Oliver

      --
      Homepage:       http://www.wolfsburg.de/~rauch
      sane-umax:      http://www.wolfsburg.de/~rauch/sane/sane-umax.html
      xsane:          http://www.wolfsburg.de/~rauch/sane/sane-xsane.html
      E-Mail:         mailto:Oliver.Rauch@Wolfsburg.DE
      --
      Source code, list archive, and docs: http://www.mostang.com/sane/
      To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com

  - Next message: Oliver Rauch: "Re: Xsane-0.55: scan resolution selection (Epson 1200S, CVS Sane)"
  - Previous message: Bill Wohler: "Re: New CVS snapshot 20000213"
  - Next in thread: Chris Pinkham: "Re: some backends return invalid pointers"
  - Reply: Chris Pinkham: "Re: some backends return invalid pointers"
  - Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

  This archive was generated by hypermail 2b29 : Sun Feb 20 2000 - 10:36:46 PST