kopia lustrzana https://gitlab.com/sane-project/website
128 wiersze
4.6 KiB
HTML
128 wiersze
4.6 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: Re: EOF detection</TITLE>
|
||
<META NAME="Author" CONTENT="Marian Eichholz (marian.eichholz@freenet-ag.de)">
|
||
<META NAME="Subject" CONTENT="Re: EOF detection">
|
||
</HEAD>
|
||
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
|
||
<H1>Re: EOF detection</H1>
|
||
<!-- received="Tue May 8 09:31:46 2001" -->
|
||
<!-- isoreceived="20010508163146" -->
|
||
<!-- sent="Tue, 08 May 2001 18:44:26 +0200" -->
|
||
<!-- isosent="20010508164426" -->
|
||
<!-- name="Marian Eichholz" -->
|
||
<!-- email="marian.eichholz@freenet-ag.de" -->
|
||
<!-- subject="Re: EOF detection" -->
|
||
<!-- id="3AF8226A.343A080@freenet-ag.de" -->
|
||
<!-- inreplyto="3AF8186B.7AE1449C@rauch-domain.de" -->
|
||
<STRONG>From:</STRONG> Marian Eichholz (<A HREF="mailto:marian.eichholz@freenet-ag.de?Subject=Re:%20EOF%20detection&In-Reply-To=<3AF8226A.343A080@freenet-ag.de>"><EM>marian.eichholz@freenet-ag.de</EM></A>)<BR>
|
||
<STRONG>Date:</STRONG> Tue May 08 2001 - 09:44:26 PDT
|
||
<P>
|
||
<!-- next="start" -->
|
||
<LI><STRONG>Next message:</STRONG> <A HREF="0095.html">Nick Lamb: "Re: EOF detection"</A>
|
||
<UL>
|
||
<LI><STRONG>Previous message:</STRONG> <A HREF="0093.html">Oliver Rauch: "Re: EOF detection"</A>
|
||
<LI><STRONG>In reply to:</STRONG> <A HREF="0093.html">Oliver Rauch: "Re: EOF detection"</A>
|
||
<!-- nextthread="start" -->
|
||
<LI><STRONG>Next in thread:</STRONG> <A HREF="0095.html">Nick Lamb: "Re: EOF detection"</A>
|
||
<LI><STRONG>Reply:</STRONG> <A HREF="0095.html">Nick Lamb: "Re: EOF detection"</A>
|
||
<!-- reply="end" -->
|
||
<LI><STRONG>Messages sorted by:</STRONG>
|
||
<A HREF="date.html#94">[ date ]</A>
|
||
<A HREF="index.html#94">[ thread ]</A>
|
||
<A HREF="subject.html#94">[ subject ]</A>
|
||
<A HREF="author.html#94">[ author ]</A>
|
||
</UL>
|
||
<HR NOSHADE><P>
|
||
<!-- body="start" -->
|
||
<P>
|
||
Oliver Rauch wrote:
|
||
<BR>
|
||
<P><EM>> > So you can't return data if you don't return SANE_STATUS_GOOD.
|
||
</EM><BR>
|
||
|
||
<BR>
|
||
Thank You, Oliver, after I changes the EOF policy, our backend works
|
||
<BR>
|
||
"smooth like wodka" (Pitr).
|
||
<BR>
|
||
<P><EM>> Yes, but you also can argue that SANE_STATUS_EOF is not a failure,
|
||
</EM><BR>
|
||
<EM>> only the info that there is no more data than returned by
|
||
</EM><BR>
|
||
<EM>> this sane_read command. It does not hurt to mention it explictly.
|
||
</EM><BR>
|
||
<P>By the way: Thank You for Xsane 0.76. It's getting nicer and nicer :-)
|
||
<BR>
|
||
<P>I did't look into the new scanning code, but 0.74 had in fact a
|
||
<BR>
|
||
vulnerability (buffer overrun), if the backend offers actually more data
|
||
<BR>
|
||
than was precalculated by the front end.
|
||
<BR>
|
||
<P>This is/was really a bug in the front end Xsane, because the parameters
|
||
<BR>
|
||
to sane_read (aount of data requestet) don't mention the coming end of
|
||
<BR>
|
||
the buffer (always requesting 64K/8K).
|
||
<BR>
|
||
<P>By *very* careful width/length prediction (and some paranoia checks) the
|
||
<BR>
|
||
client can avoid the buffer smashing, but IMHO this is not the best way
|
||
<BR>
|
||
to make the tiers robust (you have to trust the scanner). GIGO would be
|
||
<BR>
|
||
perhaps better.:-)
|
||
<BR>
|
||
<P>Mit freundlichen Gruessen / Yours sincerely
|
||
<BR>
|
||
<P>Marian Eichholz
|
||
<BR>
|
||
<P>- - - - - - - - - - -
|
||
<BR>
|
||
Marian Eichholz
|
||
<BR>
|
||
Postmaster
|
||
<BR>
|
||
freenet.de AG Vorsitzender des Aufsichtsrates: Gerhard Schmid
|
||
<BR>
|
||
Deelb<EFBFBD>genkamp 4c Vorstand: Eckhard Spoerr (Vors.), Axel Krieger
|
||
<BR>
|
||
22297 Hamburg Amtsgericht Hamburg, HRB 74048
|
||
<BR>
|
||
<P><PRE>
|
||
--
|
||
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:%20EOF%20detection&In-Reply-To=<3AF8226A.343A080@freenet-ag.de>">majordomo@mostang.com</A>
|
||
</PRE>
|
||
<P><!-- body="end" -->
|
||
<HR NOSHADE>
|
||
<UL>
|
||
<!-- next="start" -->
|
||
<LI><STRONG>Next message:</STRONG> <A HREF="0095.html">Nick Lamb: "Re: EOF detection"</A>
|
||
<LI><STRONG>Previous message:</STRONG> <A HREF="0093.html">Oliver Rauch: "Re: EOF detection"</A>
|
||
<LI><STRONG>In reply to:</STRONG> <A HREF="0093.html">Oliver Rauch: "Re: EOF detection"</A>
|
||
<!-- nextthread="start" -->
|
||
<LI><STRONG>Next in thread:</STRONG> <A HREF="0095.html">Nick Lamb: "Re: EOF detection"</A>
|
||
<LI><STRONG>Reply:</STRONG> <A HREF="0095.html">Nick Lamb: "Re: EOF detection"</A>
|
||
<!-- reply="end" -->
|
||
<LI><STRONG>Messages sorted by:</STRONG>
|
||
<A HREF="date.html#94">[ date ]</A>
|
||
<A HREF="index.html#94">[ thread ]</A>
|
||
<A HREF="subject.html#94">[ subject ]</A>
|
||
<A HREF="author.html#94">[ 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>Tue May 08 2001 - 09:33:44 PDT</EM>
|
||
</EM>
|
||
</SMALL>
|
||
</BODY>
|
||
</HTML>
|