com php-src: These need to be volatile in order to prevent leaking after the longjmp in the error handler: ext/gd/libgd/gd_png.c
| From: | Rasmus Lerdorf | Date: | Tue, 06 Nov 2012 04:57:15 +0000 |
| Subject: | com php-src: These need to be volatile in order to prevent leaking after the longjmp in the error handler: ext/gd/libgd/gd_png.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-70499@lists.php.net to get a copy of this message | ||
Commit: f8c280d85a3fc5b02e9b19f4e23ddac233abf1e4
Author: Rasmus Lerdorf <rasmus@php.net> Mon, 5 Nov 2012 20:56:19 -0800
Parents: 90bd54c46e0195f65a1a49ac0c01f139915a2dd3
Branches: PHP-5.3
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f8c280d85a3fc5b02e9b19f4e23ddac233abf1e4
Log:
These need to be volatile in order to prevent leaking after the
longjmp in the error handler
Changed paths:
M ext/gd/libgd/gd_png.c
Diff:
diff --git a/ext/gd/libgd/gd_png.c b/ext/gd/libgd/gd_png.c
index 49f7cb0..bdbb7ee 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;