Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jan 2016 13:43:52 -0500
From:      Michael McConville <mmcco@mykolab.com>
To:        freebsd-net@freebsd.org
Subject:   Undefined shift overflow in dhclient(8)
Message-ID:  <20160127184352.GA3148@thinkpad.swarthmore.edu>

next in thread | raw e-mail | index | archive | help
I fixed this in OpenBSD yesterday. Details:

https://marc.info/?l=openbsd-tech&m=145377854103866&w=2


Index: sbin/dhclient/dhclient.c
===================================================================
--- sbin/dhclient/dhclient.c	(revision 294200)
+++ sbin/dhclient/dhclient.c	(working copy)
@@ -138,7 +138,7 @@
 findproto(char *cp, int n)
 {
 	struct sockaddr *sa;
-	int i;
+	unsigned int i;
 
 	if (n == 0)
 		return -1;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160127184352.GA3148>