aboutsummaryrefslogtreecommitdiff
path: root/website/static/security/patches/SA-18:15/bootpd.patch
blob: 547da229613aef56af7454427f712eaeeda56ad8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- libexec/bootpd/bootpd.c.orig
+++ libexec/bootpd/bootpd.c
@@ -636,6 +636,10 @@
 	char *homedir, *bootfile;
 	int n;
 
+	if (bp->bp_htype >= hwinfocnt) {
+		report(LOG_NOTICE, "bad hw addr type %u", bp->bp_htype);
+		return;
+	}
 	bp->bp_file[sizeof(bp->bp_file)-1] = '\0';
 
 	/* XXX - SLIP init: Set bp_ciaddr = recv_addr here? */