[BusyBox-cvs] [BusyBox 0000045]: traceroute causes an alignment trap due to unaligned buffer on arm

bugs at busybox.net bugs at busybox.net
Tue Jul 19 20:38:06 UTC 2005


The following issue has been RESOLVED. 
====================================================================== 
http://busybox.net/bugs/view.php?id=45 
====================================================================== 
Reported By:                pmz
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   45
Category:                   Networking Support
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     resolved
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             01-18-2005 23:59 PST
Last Modified:              07-19-2005 13:38 PDT
====================================================================== 
Summary:                    traceroute causes an alignment trap due to unaligned
buffer on arm
Description: 
In various combinations of gcc and optimization options the static buffer
"char packet [512]" starts on odd adresses. In this case, accesses to port
number (16 bit) of struct udphdr are leading to unaligned accesses.

Attached patch changes packet to dynamically allocated buffer, which is
aligned by definition.
====================================================================== 

---------------------------------------------------------------------- 
 pgf - 07-19-05 13:38  
---------------------------------------------------------------------- 
applied in svn 10860 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
01-18-05 23:59  pmz            New Issue                                    
01-18-05 23:59  pmz            File Added: patch.traceroute                    
03-16-05 12:26  andersen       Assigned To              andersen => BusyBox 
07-19-05 13:38  pgf            Status                   assigned => resolved
07-19-05 13:38  pgf            Resolution               open => fixed       
07-19-05 13:38  pgf            Note Added: 0000303                          
======================================================================




More information about the busybox-cvs mailing list