[Bug 6998] New: ping6 segmentation fault
bugzilla at busybox.net
bugzilla at busybox.net
Fri Mar 28 01:33:25 UTC 2014
https://bugs.busybox.net/show_bug.cgi?id=6998
Summary: ping6 segmentation fault
Product: Busybox
Version: unspecified
Platform: Other
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P5
Component: Networking
AssignedTo: unassigned at busybox.net
ReportedBy: dajiangwan at gmail.com
CC: busybox-cvs at busybox.net
Estimated Hours: 0.0
when running ping6 on an ARM( Atmel AT91SAM9260, linux-2.6.38.8).
the command is:
ping6 -c 4 ::1
PING ::1 (::1): 56 data bytes
Segmentation fault
#816 line: (busybox-1.22.1/networking/ping.c)
for (mp = CMSG_FIRSTHDR(&msg); mp; mp = CMSG_NXTHDR(&msg, mp)) {
if (mp->cmsg_level == SOL_IPV6
&& mp->cmsg_type == IPV6_HOPLIMIT
/* don't check len - we trust the kernel: */
/* && mp->cmsg_len >= CMSG_LEN(sizeof(int)) */
) {
/*hoplimit = *(int*)CMSG_DATA(mp); - unaligned access */
move_from_unaligned_int(hoplimit, CMSG_DATA(mp));
break;
}
}
}
I add "break" at line 824, then I test again, all is OK!
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list