From 71254014116bf9c9b99a4c4b7f8dffbb400b7a46 Mon Sep 17 00:00:00 2001 From: Glenn Randers-Pehrson Date: Tue, 31 Oct 2017 20:58:19 -0500 Subject: [PATCH] [libpng16] Undo recent pngrutil.c change that did not fix oss-fuzz issue --- pngrutil.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/pngrutil.c b/pngrutil.c index 8081febc0..8692933bd 100644 --- a/pngrutil.c +++ b/pngrutil.c @@ -1852,9 +1852,6 @@ png_handle_tRNS(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length) png_crc_read(png_ptr, buf, 2); png_ptr->num_trans = 1; png_ptr->trans_color.gray = png_get_uint_16(buf); - png_ptr->trans_color.red = png_ptr->trans_color.gray; - png_ptr->trans_color.green = png_ptr->trans_color.gray; - png_ptr->trans_color.blue = png_ptr->trans_color.gray; } else if (png_ptr->color_type == PNG_COLOR_TYPE_RGB) -- GitLab