summaryrefslogtreecommitdiff
path: root/net-misc/selfdhcp/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-misc/selfdhcp/files
reinit the tree, so we can have metadata
Diffstat (limited to 'net-misc/selfdhcp/files')
-rw-r--r--net-misc/selfdhcp/files/selfdhcp-0.2a-buffer-overflow.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/net-misc/selfdhcp/files/selfdhcp-0.2a-buffer-overflow.patch b/net-misc/selfdhcp/files/selfdhcp-0.2a-buffer-overflow.patch
new file mode 100644
index 000000000000..6f99f7dea895
--- /dev/null
+++ b/net-misc/selfdhcp/files/selfdhcp-0.2a-buffer-overflow.patch
@@ -0,0 +1,11 @@
+--- selfdhcp-0.2a.orig/src/selfdhcp_profiles.c 2004-08-02 18:10:36.000000000 -0400
++++ selfdhcp-0.2a/src/selfdhcp_profiles.c 2011-01-29 11:54:29.132199679 -0500
+@@ -345,7 +345,7 @@
+ {
+ key = xmlNodeListGetString (doc, cur->xmlChildrenNode, 1);
+ err_msg (DBG_PROG, "xml element \"%s\"", (char *) key);
+- strncpy (netconf_buff.domainname, (char *) key, 49);
++ strncpy (netconf_buff.domainname, (char *) key, sizeof(netconf_buff.domainname)-1);
+ netconf_buff.what_is_set &= NETADDR;
+ err_msg (DBG_INFO, "read domain name \"%s\"",
+ netconf_buff.domainname);