kopia lustrzana https://gitlab.com/sane-project/website
122 wiersze
4.4 KiB
HTML
122 wiersze
4.4 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: seg-faults for network access</TITLE>
|
|
<META NAME="Author" CONTENT="Jochen Eisinger (jochen.eisinger@gno.de)">
|
|
<META NAME="Subject" CONTENT="Re: seg-faults for network access">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
|
|
<H1>Re: seg-faults for network access</H1>
|
|
<!-- received="Sun Dec 10 05:41:49 2000" -->
|
|
<!-- isoreceived="20001210134149" -->
|
|
<!-- sent="Sun, 10 Dec 2000 14:43:42 +0100" -->
|
|
<!-- isosent="20001210134342" -->
|
|
<!-- name="Jochen Eisinger" -->
|
|
<!-- email="jochen.eisinger@gno.de" -->
|
|
<!-- subject="Re: seg-faults for network access" -->
|
|
<!-- id="3A33888E.416693AD@gno.de" -->
|
|
<!-- inreplyto="3A3386F0.1E7BD672@gno.de" -->
|
|
<STRONG>From:</STRONG> Jochen Eisinger (<A HREF="mailto:jochen.eisinger@gno.de?Subject=Re:%20seg-faults%20for%20network%20access&In-Reply-To=<3A33888E.416693AD@gno.de>"><EM>jochen.eisinger@gno.de</EM></A>)<BR>
|
|
<STRONG>Date:</STRONG> Sun Dec 10 2000 - 05:43:42 PST
|
|
<P>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0102.html">Mitsuru Okaniwa: "Re: The calibration function for CanoScanFB620S"</A>
|
|
<UL>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0100.html">Jochen Eisinger: "Re: seg-faults for network access"</A>
|
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0100.html">Jochen Eisinger: "Re: seg-faults for network access"</A>
|
|
<!-- nextthread="start" -->
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0108.html">Jochen Eisinger: "Re: seg-faults for network access"</A>
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#101">[ date ]</A>
|
|
<A HREF="index.html#101">[ thread ]</A>
|
|
<A HREF="subject.html#101">[ subject ]</A>
|
|
<A HREF="author.html#101">[ author ]</A>
|
|
</UL>
|
|
<HR NOSHADE><P>
|
|
<!-- body="start" -->
|
|
<P>
|
|
Hi!
|
|
<BR>
|
|
<P>little typo in the patch... sorry
|
|
<BR>
|
|
<P>-- jochen
|
|
<BR>
|
|
<P><EM>> --- ../sane/sane-backends/sanei/sanei_wire.c Sat Aug 12 17:11:37 2000
|
|
</EM><BR>
|
|
<EM>> +++ sane-backends/sanei/sanei_wire.c Sun Dec 10 12:38:19 2000
|
|
</EM><BR>
|
|
<EM>> @@ -56,6 +56,9 @@
|
|
</EM><BR>
|
|
<EM>> int fd = w->io.fd;
|
|
</EM><BR>
|
|
<EM>> ssize_t nread, nwritten;
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> + if (w->status != 0)
|
|
</EM><BR>
|
|
<EM>> + return;
|
|
</EM><BR>
|
|
<EM>> +
|
|
</EM><BR>
|
|
<EM>> if (w->buffer.curr + howmuch > w->buffer.end)
|
|
</EM><BR>
|
|
<EM>> {
|
|
</EM><BR>
|
|
<EM>> switch (w->direction)
|
|
</EM><BR>
|
|
<EM>> @@ -80,6 +83,8 @@
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> case WIRE_DECODE:
|
|
</EM><BR>
|
|
<EM>> left_over = w->buffer.end - w->buffer.curr;
|
|
</EM><BR>
|
|
<EM>> + if ((signed) left_over < 0)
|
|
</EM><BR>
|
|
^^^ too many brackets here
|
|
<BR>
|
|
<P><EM>> + return;
|
|
</EM><BR>
|
|
<EM>> if (left_over)
|
|
</EM><BR>
|
|
<EM>> memcpy (w->buffer.start, w->buffer.curr, left_over);
|
|
</EM><BR>
|
|
<EM>> w->buffer.curr = w->buffer.start;
|
|
</EM><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:%20seg-faults%20for%20network%20access&In-Reply-To=<3A33888E.416693AD@gno.de>">majordomo@mostang.com</A>
|
|
</PRE>
|
|
<P><!-- body="end" -->
|
|
<HR NOSHADE>
|
|
<UL>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0102.html">Mitsuru Okaniwa: "Re: The calibration function for CanoScanFB620S"</A>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0100.html">Jochen Eisinger: "Re: seg-faults for network access"</A>
|
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0100.html">Jochen Eisinger: "Re: seg-faults for network access"</A>
|
|
<!-- nextthread="start" -->
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0108.html">Jochen Eisinger: "Re: seg-faults for network access"</A>
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#101">[ date ]</A>
|
|
<A HREF="index.html#101">[ thread ]</A>
|
|
<A HREF="subject.html#101">[ subject ]</A>
|
|
<A HREF="author.html#101">[ 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 Dec 10 2000 - 05:42:06 PST</EM>
|
|
</EM>
|
|
</SMALL>
|
|
</BODY>
|
|
</HTML>
|