| 1 |
diff -up dhcp-4.1.0/common/lpf.c.memory dhcp-4.1.0/common/lpf.c
|
| 2 |
--- dhcp-4.1.0/common/lpf.c.memory 2008-03-18 08:28:14.000000000 -1000
|
| 3 |
+++ dhcp-4.1.0/common/lpf.c 2009-01-06 07:57:54.000000000 -1000
|
| 4 |
@@ -247,6 +247,7 @@ static void lpf_tr_filter_setup (info)
|
| 5 |
struct interface_info *info;
|
| 6 |
{
|
| 7 |
struct sock_fprog p;
|
| 8 |
+ memset(&p,'\0', sizeof(struct sock_fprog));
|
| 9 |
|
| 10 |
/* Set up the bpf filter program structure. This is defined in
|
| 11 |
bpf.c */
|
| 12 |
diff -up dhcp-4.1.0/common/packet.c.memory dhcp-4.1.0/common/packet.c
|
| 13 |
--- dhcp-4.1.0/common/packet.c.memory 2007-11-30 11:51:43.000000000 -1000
|
| 14 |
+++ dhcp-4.1.0/common/packet.c 2009-01-06 07:57:54.000000000 -1000
|
| 15 |
@@ -135,6 +135,7 @@ void assemble_udp_ip_header (interface,
|
| 16 |
struct ip ip;
|
| 17 |
struct udphdr udp;
|
| 18 |
|
| 19 |
+ memset( &ip, '\0', sizeof ip);
|
| 20 |
/* Fill out the IP header */
|
| 21 |
IP_V_SET (&ip, 4);
|
| 22 |
IP_HL_SET (&ip, 20);
|
| 23 |
diff -up dhcp-4.1.0/minires/ns_name.c.memory dhcp-4.1.0/minires/ns_name.c
|
| 24 |
--- dhcp-4.1.0/minires/ns_name.c.memory 2005-03-17 10:15:17.000000000 -1000
|
| 25 |
+++ dhcp-4.1.0/minires/ns_name.c 2009-01-06 07:57:54.000000000 -1000
|
| 26 |
@@ -71,6 +71,11 @@ ns_name_ntop(const u_char *src, char *ds
|
| 27 |
dn = dst;
|
| 28 |
eom = dst + dstsiz;
|
| 29 |
|
| 30 |
+ if (dn >= eom) {
|
| 31 |
+ errno = EMSGSIZE;
|
| 32 |
+ return (-1);
|
| 33 |
+ }
|
| 34 |
+
|
| 35 |
while ((n = *cp++) != 0) {
|
| 36 |
if ((n & NS_CMPRSFLGS) != 0) {
|
| 37 |
/* Some kind of compression pointer. */
|