]> granicus.if.org Git - php/commitdiff
These need to be volatile in order to prevent leaking after the
authorRasmus Lerdorf <rasmus@php.net>
Tue, 6 Nov 2012 04:56:19 +0000 (20:56 -0800)
committerRasmus Lerdorf <rasmus@php.net>
Tue, 6 Nov 2012 04:57:15 +0000 (20:57 -0800)
longjmp in the error handler

ext/gd/libgd/gd_png.c

index 49f7cb0777228dfaf7f69d6ea1f199cbd3241642..bdbb7ee7d3ebdc457e1b8d82c3205133780f12e0 100644 (file)
@@ -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;