summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2012-01-24 22:27:18 +0000
committerAndreas K. Hüttel <dilfridge@gentoo.org>2012-01-24 22:27:18 +0000
commitbc6dccb35dbaa544be218ff590ba237c627cc7b2 (patch)
tree3e24e9ebf74dbb5f440123ad2598e5767241dae3 /net-libs/openslp/files
parentFinally mask media-fonts/gnu-gs-fonts-* for last-riting, ending (diff)
downloadgentoo-2-bc6dccb35dbaa544be218ff590ba237c627cc7b2.tar.gz
gentoo-2-bc6dccb35dbaa544be218ff590ba237c627cc7b2.tar.bz2
gentoo-2-bc6dccb35dbaa544be218ff590ba237c627cc7b2.zip
Fix buffer overflow, bug 329039. Thanks to Joseph Yasi for the patch.
(Portage version: 2.1.10.44/cvs/Linux x86_64)
Diffstat (limited to 'net-libs/openslp/files')
-rw-r--r--net-libs/openslp/files/openslp-1.2.1-fixoverflow.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/net-libs/openslp/files/openslp-1.2.1-fixoverflow.patch b/net-libs/openslp/files/openslp-1.2.1-fixoverflow.patch
new file mode 100644
index 000000000000..c02d8407fb3b
--- /dev/null
+++ b/net-libs/openslp/files/openslp-1.2.1-fixoverflow.patch
@@ -0,0 +1,11 @@
+--- 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));
+ }