[libpng16] Initialized btoa[] in pngstest.c; stop memory leak in png_handle_eXIf()

when returning with an error.
This commit is contained in:
Glenn Randers-Pehrson
2017-08-01 15:24:21 -05:00
parent 4aad3c0eb0
commit bc68c41d5f
4 changed files with 12 additions and 1 deletions

View File

@@ -2610,9 +2610,9 @@ compare_two_images(Image *a, Image *b, int via_linear,
const unsigned int b_sample = PNG_IMAGE_SAMPLE_SIZE(formatb);
int alpha_added, alpha_removed;
int bchannels;
int btoa[4];
png_uint_32 y;
Transform tr;
int btoa[4]={0,0,0,0};
/* This should never happen: */
if (width != b->image.width || height != b->image.height)