sane-project-website/old-archive/2001-02/0192.html

109 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: SIGSEV in sane-backends-1.0.4 under Solaris</TITLE>
<META NAME="Author" CONTENT="William L. Sebok (wls@astro.umd.edu)">
<META NAME="Subject" CONTENT="SIGSEV in sane-backends-1.0.4 under Solaris">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>SIGSEV in sane-backends-1.0.4 under Solaris</H1>
<!-- received="Thu Feb 22 12:02:18 2001" -->
<!-- isoreceived="20010222200218" -->
<!-- sent="Thu, 22 Feb 2001 15:12:50 -0500 (EST)" -->
<!-- isosent="20010222201250" -->
<!-- name="William L. Sebok" -->
<!-- email="wls@astro.umd.edu" -->
<!-- subject="SIGSEV in sane-backends-1.0.4 under Solaris" -->
<!-- id="200102222012.PAA02025@earth.astro.umd.edu" -->
<STRONG>From:</STRONG> William L. Sebok (<A HREF="mailto:wls@astro.umd.edu?Subject=Re:%20SIGSEV%20in%20sane-backends-1.0.4%20under%20Solaris&In-Reply-To=&lt;200102222012.PAA02025@earth.astro.umd.edu&gt;"><EM>wls@astro.umd.edu</EM></A>)<BR>
<STRONG>Date:</STRONG> Thu Feb 22 2001 - 12:12:50 PST
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0193.html">Rod Pike: "Re: Umax Astra 2400S Scsi help"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0191.html">Andreas Rathgeber: "xsane; script that converts file names from .tiff to .tif"</A>
<!-- nextthread="start" -->
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#192">[ date ]</A>
<A HREF="index.html#192">[ thread ]</A>
<A HREF="subject.html#192">[ subject ]</A>
<A HREF="author.html#192">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
There is a potential null pointer deference in a DBG statement in
<BR>
sanei/sanei_scsi.c. The bug is in the version of scsi_cmd() that interfaces
<BR>
with the Joerg Schilling scsi driver for Solaris. I think that the section of
<BR>
code affected by this bug handles waiting for the scanner to finish being busy.
<BR>
The bug was detected with a Umax Astra 2400S scanner and was triggered whenever
<BR>
one tried to scan.
<BR>
<P>--- sanei/sanei_scsi.c.ORIG Thu Nov 30 15:02:30 2000
<BR>
+++ sanei/sanei_scsi.c Wed Feb 21 16:38:15 2001
<BR>
@@ -3590,8 +3590,8 @@
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;handler = fd_info[fd].sense_handler;
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DBG (3, &quot;cmd=%x, error=%d:%s, bsiz=%d, stat=%x,%x,%x, slen=%d\n&quot;,
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;scmd.cdb.g0_cdb.cmd, scmd.error, strerror (scmd.errno),
<BR>
- *dst_size, scmd.u_scb.cmd_scb[0], scmd.u_scb.cmd_scb[1],
<BR>
- scmd.u_scb.cmd_scb[2], scmd.sense_count);
<BR>
+ ((dst_size != NULL)?(*dst_size):0), scmd.u_scb.cmd_scb[0],
<BR>
+ scmd.u_scb.cmd_scb[1], scmd.u_scb.cmd_scb[2], scmd.sense_count);
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*errbf = '\0';
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (i = 0; i &lt; scmd.sense_count; i++)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sprintf (errbf + strlen (errbf), &quot;%x,&quot;, scmd.u_sense.cmd_sense[i]);
<BR>
<P><P>Bill Sebok Computer Software Manager, Univ. of Maryland, Astronomy
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Internet: <A HREF="mailto:wls@astro.umd.edu?Subject=Re:%20SIGSEV%20in%20sane-backends-1.0.4%20under%20Solaris&In-Reply-To=&lt;200102222012.PAA02025@earth.astro.umd.edu&gt;">wls@astro.umd.edu</A> URL: <A HREF="http://www.astro.umd.edu/~wls/">http://www.astro.umd.edu/~wls/</A>
<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:%20SIGSEV%20in%20sane-backends-1.0.4%20under%20Solaris&In-Reply-To=&lt;200102222012.PAA02025@earth.astro.umd.edu&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0193.html">Rod Pike: "Re: Umax Astra 2400S Scsi help"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0191.html">Andreas Rathgeber: "xsane; script that converts file names from .tiff to .tif"</A>
<!-- nextthread="start" -->
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#192">[ date ]</A>
<A HREF="index.html#192">[ thread ]</A>
<A HREF="subject.html#192">[ subject ]</A>
<A HREF="author.html#192">[ 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 Feb 22 2001 - 12:05:53 PST</EM>
</EM>
</SMALL>
</BODY>
</HTML>