Snort mailing list archives

Re: Bus error on sparc


From: "Andrew R. Baker" <andrewb () snort org>
Date: Thu, 15 May 2003 12:39:15 -0400

Michael Bell wrote:
Hi,

I made finally some small fixes in decode.(c|h) and some more fixes in spp_stream4.c. I removed SPARC_TWIDDLE from spp_stream4.c and changed the code for alignment a little bit.

Can a more experienced snort developer verify the diffs please? I only made some small hacks to fix the bus errors but of course I cannot say that I know what I'm doing :)

Without the patch it is possible to crash snort on sparc with some wellformed packets (even if stream4 is not activated).

A better fix may be to do what pcap does for these cases. When constructing the pseudo packet, offset the start of the packet by N bytes (where N = number of bytes to make the link layer portion *end* on a word boundary). I do this in Barnyard for *all* packets regardless of what platform we are running on

-Andrew




-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com

_______________________________________________
Snort-users mailing list
Snort-users () lists sourceforge net
Go to this URL to change user options or unsubscribe:
https://lists.sourceforge.net/lists/listinfo/snort-users
Snort-users list archive:
http://www.geocrawler.com/redir-sf.php3?list=snort-users


Current thread: