diff options
author | Rasmus Lerdorf <rasmus@php.net> | 2012-11-05 20:56:19 -0800 |
---|---|---|
committer | Rasmus Lerdorf <rasmus@php.net> | 2012-11-05 20:57:07 -0800 |
commit | f452b9056e89aa1bf18d6c0828ba709c0f8df854 (patch) | |
tree | 818da80ce35df4c27c501b3e0069409cbc731f92 | |
parent | 153bfada90b0733943c31e9d7e2bee57c5e7bcac (diff) | |
download | php-git-f452b9056e89aa1bf18d6c0828ba709c0f8df854.tar.gz |
These need to be volatile in order to prevent leaking after the
longjmp in the error handler
-rw-r--r-- | ext/gd/libgd/gd_png.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |