4f14cb7
diff -up dhcp-4.0.0//common/lpf.c.memory dhcp-4.0.0//common/lpf.c
4f14cb7
--- dhcp-4.0.0//common/lpf.c.memory	2007-07-12 20:43:41.000000000 -1000
4f14cb7
+++ dhcp-4.0.0//common/lpf.c	2008-08-01 10:08:01.000000000 -1000
4f14cb7
@@ -245,6 +245,7 @@ static void lpf_tr_filter_setup (info)
4f14cb7
 	struct interface_info *info;
4f14cb7
 {
4f14cb7
 	struct sock_fprog p;
4f14cb7
+	memset(&p,'\0', sizeof(struct sock_fprog));
4f14cb7
 
4f14cb7
 	/* Set up the bpf filter program structure.    This is defined in
4f14cb7
 	   bpf.c */
4f14cb7
diff -up dhcp-4.0.0//common/packet.c.memory dhcp-4.0.0//common/packet.c
4f14cb7
--- dhcp-4.0.0//common/packet.c.memory	2007-11-30 11:51:43.000000000 -1000
4f14cb7
+++ dhcp-4.0.0//common/packet.c	2008-08-01 10:08:01.000000000 -1000
4f14cb7
@@ -135,6 +135,7 @@ void assemble_udp_ip_header (interface, 
4f14cb7
 	struct ip ip;
4f14cb7
 	struct udphdr udp;
4f14cb7
 
4f14cb7
+	memset( &ip, '\0', sizeof ip);
4f14cb7
 	/* Fill out the IP header */
4f14cb7
 	IP_V_SET (&ip, 4);
4f14cb7
 	IP_HL_SET (&ip, 20);
4f14cb7
diff -up dhcp-4.0.0//minires/ns_name.c.memory dhcp-4.0.0//minires/ns_name.c
4f14cb7
--- dhcp-4.0.0//minires/ns_name.c.memory	2005-03-17 10:15:17.000000000 -1000
4f14cb7
+++ dhcp-4.0.0//minires/ns_name.c	2008-08-01 10:08:01.000000000 -1000
9858513
@@ -71,6 +71,11 @@ ns_name_ntop(const u_char *src, char *ds
9858513
 	dn = dst;
9858513
 	eom = dst + dstsiz;
9858513
 
9858513
+	if (dn >= eom) {
9858513
+		errno = EMSGSIZE;
9858513
+		return (-1);
9858513
+	}
9858513
+
9858513
 	while ((n = *cp++) != 0) {
9858513
 		if ((n & NS_CMPRSFLGS) != 0) {
9858513
 			/* Some kind of compression pointer. */