Skip to content

Commit f8c280d

Browse files
committed
These need to be volatile in order to prevent leaking after the
longjmp in the error handler
1 parent 90bd54c commit f8c280d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/gd/libgd/gd_png.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ gdImagePtr gdImageCreateFromPngCtx (gdIOCtx * infile)
127127
png_color_16p trans_gray_rgb;
128128
png_color_16p trans_color_rgb;
129129
png_bytep trans;
130-
png_bytep image_data = NULL;
131-
png_bytepp row_pointers = NULL;
130+
volatile png_bytep image_data = NULL;
131+
volatile png_bytepp row_pointers = NULL;
132132
gdImagePtr im = NULL;
133133
int i, j, *open = NULL;
134134
volatile int transparent = -1;

0 commit comments

Comments
 (0)