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:56:19 -0800 |
| commit | 261e32f6236429fcccf61e80262c9df9589d494c (patch) | |
| tree | c97df4811134986760d37268940ac06785bf842d | |
| parent | 7bcb8780e0ed042888f88c78919b7726be9ea931 (diff) | |
| download | php-git-261e32f6236429fcccf61e80262c9df9589d494c.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; |
