[BusyBox] [BusyBox 0000045]: traceroute causes an alignment trap due to unaligned buffer on arm
bugs at busybox.net
bugs at busybox.net
Wed Mar 16 20:26:51 UTC 2005
The following issue has been ASSIGNED.
======================================================================
<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: assigned
======================================================================
Date Submitted: 01-18-2005 23:59 PST
Last Modified: 03-16-2005 12:26 PST
======================================================================
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.
======================================================================
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
======================================================================
More information about the busybox
mailing list