From owner-cvs-all@FreeBSD.ORG Fri Jul 8 07:28:46 2011 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9F71B106564A; Fri, 8 Jul 2011 07:28:46 +0000 (UTC) (envelope-from glewis@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 8F64E8FC12; Fri, 8 Jul 2011 07:28:46 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p687Skef027899; Fri, 8 Jul 2011 07:28:46 GMT (envelope-from glewis@repoman.freebsd.org) Received: (from glewis@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p687Skrl027898; Fri, 8 Jul 2011 07:28:46 GMT (envelope-from glewis) Message-Id: <201107080728.p687Skrl027898@repoman.freebsd.org> From: Greg Lewis Date: Fri, 8 Jul 2011 07:28:46 +0000 (UTC) To: ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: ports/java/openjdk7 Makefile ports/java/openjdk7/files patch-src-solaris-native-java-net-NetworkInterface.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jul 2011 07:28:46 -0000 glewis 2011-07-08 07:28:46 UTC FreeBSD ports repository Modified files: java/openjdk7 Makefile Added files: java/openjdk7/files patch-src-solaris-native-java-net-NetworkInterface.c Log: . Try harder to make sure the flags returned from getFlags isn't negative, since a number of places in the code check for that and assume that it means an error occurred. On FreeBSD, in particular, the value of ifr_flags can be negative if multicast is enabled on the socket since the possible flags have expanded to fill more than a short. Instead of blindly promoting ifr_flags to an int, which will preserve the sign, we fill the int return value with ifr_flagshigh in the high 16 bits and ifr_flags in the low 16 bits. PR: 155186 Reported by: Alex Hayward Revision Changes Path 1.29 +1 -0 ports/java/openjdk7/Makefile 1.1 +17 -0 ports/java/openjdk7/files/patch-src-solaris-native-java-net-NetworkInterface.c (new)