sane-project-website/old-archive/2000-02/0243.html

96 wiersze
4.3 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
<TITLE>sane-devel: some backends return invalid pointers</TITLE>
<META NAME="Author" CONTENT="Oliver Rauch (oliver.rauch@Wolfsburg.DE)">
<META NAME="Subject" CONTENT="some backends return invalid pointers">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>some backends return invalid pointers</H1>
<!-- received="Sun Feb 20 10:35:04 2000" -->
<!-- isoreceived="20000220183504" -->
<!-- sent="Sun, 20 Feb 2000 19:37:10 +0100" -->
<!-- isosent="20000220183710" -->
<!-- name="Oliver Rauch" -->
<!-- email="oliver.rauch@Wolfsburg.DE" -->
<!-- subject="some backends return invalid pointers" -->
<!-- id="38B03456.8385157A@wolfsburg.de" -->
<STRONG>From:</STRONG> Oliver Rauch (<A HREF="mailto:oliver.rauch@Wolfsburg.DE?Subject=Re:%20some%20backends%20return%20invalid%20pointers&In-Reply-To=&lt;38B03456.8385157A@wolfsburg.de&gt;"><EM>oliver.rauch@Wolfsburg.DE</EM></A>)<BR>
<STRONG>Date:</STRONG> Sun Feb 20 2000 - 10:37:10 PST
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0244.html">Oliver Rauch: "Re: Xsane-0.55: scan resolution selection (Epson 1200S, CVS Sane)"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0242.html">Bill Wohler: "Re: New CVS snapshot 20000213"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0250.html">Chris Pinkham: "Re: some backends return invalid pointers"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0250.html">Chris Pinkham: "Re: some backends return invalid pointers"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#243">[ date ]</A>
<A HREF="index.html#243">[ thread ]</A>
<A HREF="subject.html#243">[ subject ]</A>
<A HREF="author.html#243">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Hi,
<BR>
<P>some backends do return invalid pointers when sane_get_option_descriptor
<BR>
is called with a negative option (if only tests for &lt;max_options and not for &gt;=0).
<BR>
<P>Although xsane will have no problems with that with the next version (0.57)
<BR>
it is not nice if the frontend gets an invalid pointer. xscanimage and xsane
<BR>
do use the option number -1 to define a not supported well known option.
<BR>
<P>Please could every backend author make sure that only a valid pointer or NULL
<BR>
is returned.
<BR>
<P>Bye
<BR>
Oliver
<BR>
<P><PRE>
--
Homepage: <A HREF="http://www.wolfsburg.de/~rauch">http://www.wolfsburg.de/~rauch</A>
sane-umax: <A HREF="http://www.wolfsburg.de/~rauch/sane/sane-umax.html">http://www.wolfsburg.de/~rauch/sane/sane-umax.html</A>
xsane: <A HREF="http://www.wolfsburg.de/~rauch/sane/sane-xsane.html">http://www.wolfsburg.de/~rauch/sane/sane-xsane.html</A>
E-Mail: mailto:<A HREF="mailto:Oliver.Rauch@Wolfsburg.DE?Subject=Re:%20some%20backends%20return%20invalid%20pointers&In-Reply-To=&lt;38B03456.8385157A@wolfsburg.de&gt;">Oliver.Rauch@Wolfsburg.DE</A>
<P><P><P><P>--
Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%20some%20backends%20return%20invalid%20pointers&In-Reply-To=&lt;38B03456.8385157A@wolfsburg.de&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0244.html">Oliver Rauch: "Re: Xsane-0.55: scan resolution selection (Epson 1200S, CVS Sane)"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0242.html">Bill Wohler: "Re: New CVS snapshot 20000213"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0250.html">Chris Pinkham: "Re: some backends return invalid pointers"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0250.html">Chris Pinkham: "Re: some backends return invalid pointers"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#243">[ date ]</A>
<A HREF="index.html#243">[ thread ]</A>
<A HREF="subject.html#243">[ subject ]</A>
<A HREF="author.html#243">[ author ]</A>
</UL>
<!-- trailer="footer" -->
<HR NOSHADE>
<P>
<SMALL>
<EM>
This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A>
: <EM>Sun Feb 20 2000 - 10:36:46 PST</EM>
</EM>
</SMALL>
</BODY>
</HTML>