summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2012-11-05 20:56:19 -0800
committerRasmus Lerdorf <rasmus@php.net>2012-11-05 20:57:15 -0800
commitf8c280d85a3fc5b02e9b19f4e23ddac233abf1e4 (patch)
tree7c46fd338ce5df1680341160750327070b894205
parent90bd54c46e0195f65a1a49ac0c01f139915a2dd3 (diff)
downloadphp-git-f8c280d85a3fc5b02e9b19f4e23ddac233abf1e4.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.c4
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;