Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 247907 Details for
Bug 329039
net-libs/openslp-1.2.1-r1 has buffer overflow with memcpy() on 64-bit architectures
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
memcpy should copy sizeof(struct in_addr) not sizeof(addr)
openslp-1.2.1-fixoverflow.patch (text/plain), 506 bytes, created by
Joseph Yasi
on 2010-09-18 21:28:37 UTC
(
hide
)
Description:
memcpy should copy sizeof(struct in_addr) not sizeof(addr)
Filename:
MIME Type:
Creator:
Joseph Yasi
Created:
2010-09-18 21:28:37 UTC
Size:
506 bytes
patch
obsolete
>--- a/openslp-1.2.1/slpd/slpd_socket.c 2010-09-11 16:31:47.325871093 -0500 >+++ b/openslp-1.2.1/slpd/slpd_socket.c 2010-09-11 16:31:55.706851189 -0500 >@@ -183,7 +183,7 @@ > memcpy(&mreq.imr_multiaddr, maddr, sizeof(struct in_addr)); > > /* drop for the specified interface */ >- memcpy(&mreq.imr_interface,addr,sizeof(addr)); >+ memcpy(&mreq.imr_interface,addr,sizeof(struct in_addr)); > > return setsockopt(sockfd, IPPROTO_IP, IP_DROP_MEMBERSHIP, (char*)&mreq,sizeof(mreq)); > }
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 329039
: 247907