diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-misc/selfdhcp/files/selfdhcp-0.2a-buffer-overflow.patch |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-misc/selfdhcp/files/selfdhcp-0.2a-buffer-overflow.patch')
-rw-r--r-- | net-misc/selfdhcp/files/selfdhcp-0.2a-buffer-overflow.patch | 11 |
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); |