Re: some backends return invalid pointers

From: Chris Pinkham (cpinkham@infi.net)
Date: Sun Feb 20 2000 - 11:31:59 PST

  • Next message: S. Grenda: "support for AGFA ARCUS II"

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

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

    Just fixed the Artec backend so it returns NULL if ( option >= NUM_OPTIONS )
    or if ( option < 0 ). Will hopefully commit to cvs tonight after I finish
    fixing another bug I'm working on.

    Chris

    *****************************************************************************
    ** Chris Pinkham Linux v2.2.6, Sane v1.0.1, Cajun v3.0-8 **
    ** cpinkham@infi.net http://www4.infi.net/~cpinkham/ **
    *****************************************************************************

    --
    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 - 11:34:29 PST