diff src/share/native/sun/awt/splashscreen/splashscreen_gif.c @ 1173:7f4cf1eb7586

6804996: JWS PNG Decoding Integer Overflow [V-flrhat2ln8] Reviewed-by: prr
author bae
date Fri, 20 Feb 2009 13:48:32 +0300
parents 0291de857e51
children 00cd9dc3c2b5
line wrap: on
line diff
--- a/src/share/native/sun/awt/splashscreen/splashscreen_gif.c	Wed Feb 18 14:14:03 2009 -0800
+++ b/src/share/native/sun/awt/splashscreen/splashscreen_gif.c	Fri Feb 20 13:48:32 2009 +0300
@@ -53,10 +53,6 @@
 // convert libungif samples to our ones
 #define MAKE_QUAD_GIF(c,a) MAKE_QUAD((c).Red, (c).Green, (c).Blue, (a))
 
-#define SAFE_TO_ALLOC(c, sz)                                               \
-    (((c) > 0) && ((sz) > 0) &&                                            \
-     ((0xffffffffu / ((unsigned int)(c))) > (unsigned int)(sz)))
-
 /* stdio FILE* and memory input functions for libungif */
 int
 SplashStreamGifInputFunc(GifFileType * gif, GifByteType * buf, int n)