mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-16 13:25:34 +00:00
6989760: cmm native compiler warnings
Reviewed-by: prr, ohair
This commit is contained in:
parent
816dc493b7
commit
36f660a41f
@ -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");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user