--- a/jdk/make/sun/cmm/kcms/Makefile Tue Mar 15 17:05:02 2011 -0400
+++ b/jdk/make/sun/cmm/kcms/Makefile Wed Mar 16 19:21:06 2011 +0300
@@ -72,7 +72,8 @@
# Extra rules
#
ifeq ($(PLATFORM), linux)
-LDLIBS += -lpthread
+ LDLIBS += -lpthread
+ OTHER_CFLAGS += -Wno-missing-field-initializers
endif
clean clobber::
@@ -104,6 +105,5 @@
endif # PLATFORM
-#CFLAGS += -DJAVACMM -DFUT_CALC_EX -DNO_FUT_GCONST
-CFLAGS += -DFUT_CALC_EX -DNO_FUT_GCONST
+CFLAGS += -DJAVACMM -DFUT_CALC_EX -DNO_FUT_GCONST
--- a/jdk/src/share/native/sun/awt/image/jpeg/imageioJPEG.c Tue Mar 15 17:05:02 2011 -0400
+++ b/jdk/src/share/native/sun/awt/image/jpeg/imageioJPEG.c Wed Mar 16 19:21:06 2011 +0300
@@ -40,7 +40,7 @@
#include <setjmp.h>
#include <assert.h>
#include <string.h>
-
+#include <limits.h>
/* java native interface headers */
#include "jni.h"
@@ -2657,7 +2657,7 @@
(destWidth < 0) || (destWidth > srcWidth) ||
(destHeight < 0) ||
(stepX < 0) || (stepY < 0) ||
- ((scanLineSize / numBands) < destWidth)) /* destWidth causes an integer overflow */
+ ((INT_MAX / numBands) < destWidth)) /* destWidth causes an integer overflow */
{
JNU_ThrowByName(env, "javax/imageio/IIOException",
"Invalid argument to native writeImage");