From: Rasmus Lerdorf Date: Tue, 6 Nov 2012 04:56:19 +0000 (-0800) Subject: These need to be volatile in order to prevent leaking after the X-Git-Tag: php-5.6.0alpha1~712 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=261e32f6236429fcccf61e80262c9df9589d494c;p=php These need to be volatile in order to prevent leaking after the longjmp in the error handler --- diff --git a/ext/gd/libgd/gd_png.c b/ext/gd/libgd/gd_png.c index 49f7cb0777..bdbb7ee7d3 100644 --- a/ext/gd/libgd/gd_png.c +++ b/ext/gd/libgd/gd_png.c @@ -127,8 +127,8 @@ gdImagePtr gdImageCreateFromPngCtx (gdIOCtx * infile) png_color_16p trans_gray_rgb; png_color_16p trans_color_rgb; png_bytep trans; - png_bytep image_data = NULL; - png_bytepp row_pointers = NULL; + volatile png_bytep image_data = NULL; + volatile png_bytepp row_pointers = NULL; gdImagePtr im = NULL; int i, j, *open = NULL; volatile int transparent = -1;