Background:
The zip routines generate a SIGBUS on sparc64 due to alignment problems.
The patch below fixes it, although not portably enough.

Can you all review the discussion at 
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=322396 and let me know
how you would like to fix it?

Thanks,

----- Forwarded message from Clint Adams <[EMAIL PROTECTED]> -----

From: Clint Adams <[EMAIL PROTECTED]>
To: Stephen Gran <[EMAIL PROTECTED]>
Date: Sat, 13 Aug 2005 13:06:37 -0400
Subject: Bug#322396: libclamav alignment problem
Cc: [EMAIL PROTECTED]
User-Agent: Mutt/1.5.9i
Reply-To: Clint Adams <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
Delivery-date: Sat, 13 Aug 2005 13:22:33 -0400
X-Debian-PR-Message: report 322396
X-Debian-PR-Package: clamav-daemon
X-Debian-PR-Keywords: upstream
X-Scanned-By: ClamAV at mail.lobefin.net
X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on mercury

So this patch fixes clamscan.  I've switched back to using clamd to see
if it is happier.

I imagine that upstream will probably want a more portable fix, as this
requires gcc.

--- /tmp/zzip-zip.c     2005-08-13 12:37:05.966677144 -0400
+++ libclamav/zziplib/zzip-zip.c        2005-08-13 12:37:51.226796560 -0400
@@ -616,7 +616,7 @@
 {
     zzip_error_t rv;
     zzip_off_t filesize;
-    struct zzip_disk_trailer trailer;
+    struct zzip_disk_trailer trailer __attribute__ ((aligned (8)));
     /* if (! dir || dir->fd < 0) 
      *     { rv = EINVAL; goto error; } 
      */



----- End forwarded message -----

-- 
 --------------------------------------------------------------------------
|  Stephen Gran                  | "Even nowadays a man can't step up and  |
|  [EMAIL PROTECTED]             | kill a woman without feeling just a bit |
|  http://www.lobefin.net/~steve | unchivalrous ..."   -- Robert Benchley  |
 --------------------------------------------------------------------------

Attachment: signature.asc
Description: Digital signature

_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html

Reply via email to