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)"

    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



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