提交 e33e8684 编写于 作者: B bae

6989760: cmm native compiler warnings

Reviewed-by: prr, ohair
上级 c8b503ac
......@@ -72,7 +72,8 @@ $(SERVICEDIR)/%: $(CLOSED_SRC)/share/classes/sun/java2d/cmm/kcms/META-INF/servic
# Extra rules
#
ifeq ($(PLATFORM), linux)
LDLIBS += -lpthread
LDLIBS += -lpthread
OTHER_CFLAGS += -Wno-missing-field-initializers
endif
clean clobber::
......@@ -104,6 +105,5 @@ CPPFLAGS += -I$(CLASSHDRDIR) \
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
......@@ -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 @@ Java_com_sun_imageio_plugins_jpeg_JPEGImageWriter_writeImage
(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");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册