Date: Fri, 8 Jul 2011 07:28:46 +0000 (UTC) From: Greg Lewis <glewis@FreeBSD.org> To: ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: ports/java/openjdk7 Makefile ports/java/openjdk7/files patch-src-solaris-native-java-net-NetworkInterface.c Message-ID: <201107080728.p687Skrl027898@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <xelah-freebsd-pr@xelah.com> 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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107080728.p687Skrl027898>