FreeBSD Bugzilla – Attachment 14851 Details for
Bug 27766
/usr/bin/ppp issues unaligned accesses and core dumps on alpha (patch included)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 736 bytes, created by
Sudish Joseph
on 2001-05-30 10:40:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Sudish Joseph
Created:
2001-05-30 10:40:01 UTC
Size:
736 bytes
patch
obsolete
>--- /usr/src/usr.sbin/ppp/ip.c Thu May 17 19:11:47 2001 >+++ /usr/src/usr.sbin/ppp/ip.c Tue May 29 06:10:34 2001 >@@ -452,6 +452,7 @@ > const u_char *ptr; > u_short *hptr; > int len; >+ u_short tmp; > > ptr = (const char *)uh + sizeof *uh; > len = ntohs(uh->uh_ulen) - sizeof *uh; >@@ -489,8 +490,10 @@ > n += len; > } > *n = '\0'; >- qtype = dns_Qtype2Txt(ntohs(*(const u_short *)end)); >- qclass = dns_Qclass2Txt(ntohs(*(const u_short *)(end + 2))); >+ bcopy(end, &tmp, sizeof(tmp)); >+ qtype = dns_Qtype2Txt(ntohs(tmp)); >+ bcopy(end + 2, &tmp, sizeof(tmp)); >+ qclass = dns_Qclass2Txt(ntohs(tmp)); > > log_Printf(LogDNS, "%sbound query %s %s %s\n", > direction, qclass, qtype, namewithdot);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 27766
: 14851