kopia lustrzana https://gitlab.com/sane-project/website
140 wiersze
5.1 KiB
HTML
140 wiersze
5.1 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="Thu May 10 01:53:41 2001" -->
|
|||
|
<!-- isoreceived="20010510085341" -->
|
|||
|
<!-- sent="Thu, 10 May 2001 11:07:29 +0200" -->
|
|||
|
<!-- isosent="20010510090729" -->
|
|||
|
<!-- name="Marian Eichholz" -->
|
|||
|
<!-- email="marian.eichholz@freenet-ag.de" -->
|
|||
|
<!-- subject="Re: EOF detection" -->
|
|||
|
<!-- id="3AFA5A51.B2EBBD28@freenet-ag.de" -->
|
|||
|
<!-- inreplyto="20010508183110.B25971@ecs.soton.ac.uk" -->
|
|||
|
<STRONG>From:</STRONG> Marian Eichholz (<A HREF="mailto:marian.eichholz@freenet-ag.de?Subject=Re:%20EOF%20detection&In-Reply-To=<3AFA5A51.B2EBBD28@freenet-ag.de>"><EM>marian.eichholz@freenet-ag.de</EM></A>)<BR>
|
|||
|
<STRONG>Date:</STRONG> Thu May 10 2001 - 02:07:29 PDT
|
|||
|
<P>
|
|||
|
<!-- next="start" -->
|
|||
|
<LI><STRONG>Next message:</STRONG> <A HREF="0108.html">Miroslav BENES: "Drivers for HP S20 USB"</A>
|
|||
|
<UL>
|
|||
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0106.html">Marian Eichholz: "Re: EOF detection"</A>
|
|||
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0095.html">Nick Lamb: "Re: EOF detection"</A>
|
|||
|
<!-- nextthread="start" -->
|
|||
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0109.html">mh: "Re: EOF detection"</A>
|
|||
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0096.html">Henning Meier-Geinitz: "Re: EOF detection"</A>
|
|||
|
<LI><STRONG>Reply:</STRONG> <A HREF="0109.html">mh: "Re: EOF detection"</A>
|
|||
|
<!-- reply="end" -->
|
|||
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|||
|
<A HREF="date.html#107">[ date ]</A>
|
|||
|
<A HREF="index.html#107">[ thread ]</A>
|
|||
|
<A HREF="subject.html#107">[ subject ]</A>
|
|||
|
<A HREF="author.html#107">[ author ]</A>
|
|||
|
</UL>
|
|||
|
<HR NOSHADE><P>
|
|||
|
<!-- body="start" -->
|
|||
|
<P>
|
|||
|
Nick Lamb wrote:
|
|||
|
<BR>
|
|||
|
<P><EM>> > I did't look into the new scanning code, but 0.74 had in fact a
|
|||
|
</EM><BR>
|
|||
|
<EM>> > vulnerability (buffer overrun), if the backend offers actually more data
|
|||
|
</EM><BR>
|
|||
|
<EM>> > than was precalculated by the front end.
|
|||
|
</EM><BR>
|
|||
|
<EM>> >
|
|||
|
</EM><BR>
|
|||
|
<EM>> > This is/was really a bug in the front end Xsane, because the parameters
|
|||
|
</EM><BR>
|
|||
|
<EM>> > to sane_read (aount of data requestet) don't mention the coming end of
|
|||
|
</EM><BR>
|
|||
|
<EM>> > the buffer (always requesting 64K/8K).
|
|||
|
</EM><BR>
|
|||
|
<EM>>
|
|||
|
</EM><BR>
|
|||
|
<EM>> I'm having trouble understanding this, can you give a concrete example,
|
|||
|
</EM><BR>
|
|||
|
<EM>> showing the SANE API calls made by Xsane, the response from the backend
|
|||
|
</EM><BR>
|
|||
|
<EM>> and where this leads to an overrun?
|
|||
|
</EM><BR>
|
|||
|
<P>Perhaps I can sniff some debugging output. Unfortunately not here and
|
|||
|
<BR>
|
|||
|
now :-(
|
|||
|
<BR>
|
|||
|
<P>The point is, that the Xsane frontend allocates a buffer, depending on
|
|||
|
<BR>
|
|||
|
the sane_param(? I don't have the specs here?) call returning the
|
|||
|
<BR>
|
|||
|
dimensions of the scan window.
|
|||
|
<BR>
|
|||
|
<P>Despite this, the frontend always requests blocks of 8KB (gray) and 64KB
|
|||
|
<BR>
|
|||
|
(RGB), even if the end of the allocated
|
|||
|
<BR>
|
|||
|
picture buffer lies within this chunk size and cannot swallow this whole
|
|||
|
<BR>
|
|||
|
chunk.
|
|||
|
<BR>
|
|||
|
<P>Thus, any backend that is keen to deliver actually more data than XSane
|
|||
|
<BR>
|
|||
|
expects, will overflow XSane's scan buffer.
|
|||
|
<BR>
|
|||
|
<P>You I right, I have to deliver some body of evidence :-)))
|
|||
|
<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=<3AFA5A51.B2EBBD28@freenet-ag.de>">majordomo@mostang.com</A>
|
|||
|
</PRE>
|
|||
|
<P><!-- body="end" -->
|
|||
|
<HR NOSHADE>
|
|||
|
<UL>
|
|||
|
<!-- next="start" -->
|
|||
|
<LI><STRONG>Next message:</STRONG> <A HREF="0108.html">Miroslav BENES: "Drivers for HP S20 USB"</A>
|
|||
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0106.html">Marian Eichholz: "Re: EOF detection"</A>
|
|||
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0095.html">Nick Lamb: "Re: EOF detection"</A>
|
|||
|
<!-- nextthread="start" -->
|
|||
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0109.html">mh: "Re: EOF detection"</A>
|
|||
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0096.html">Henning Meier-Geinitz: "Re: EOF detection"</A>
|
|||
|
<LI><STRONG>Reply:</STRONG> <A HREF="0109.html">mh: "Re: EOF detection"</A>
|
|||
|
<!-- reply="end" -->
|
|||
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|||
|
<A HREF="date.html#107">[ date ]</A>
|
|||
|
<A HREF="index.html#107">[ thread ]</A>
|
|||
|
<A HREF="subject.html#107">[ subject ]</A>
|
|||
|
<A HREF="author.html#107">[ 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>Thu May 10 2001 - 02:04:31 PDT</EM>
|
|||
|
</EM>
|
|||
|
</SMALL>
|
|||
|
</BODY>
|
|||
|
</HTML>
|