From 04e16d28176b10abe4cb6e215802c2c39e45dea4 Mon Sep 17 00:00:00 2001 From: Glenn Randers-Pehrson Date: Fri, 15 Sep 2017 16:44:20 -0500 Subject: [PATCH] [libng16] Attempt to stop Use of Uninitialized Value in png_set_text_2() --- pngset.c | 1 + 1 file changed, 1 insertion(+) diff --git a/pngset.c b/pngset.c index bf63758f8..dfa736597 100644 --- a/pngset.c +++ b/pngset.c @@ -811,6 +811,7 @@ png_set_text_2(png_const_structrp png_ptr, png_inforp info_ptr, new_text = png_voidcast(png_textp,png_realloc_array(png_ptr, info_ptr->text, old_num_text, max_text-old_num_text, sizeof *new_text)); + new_text[0].text[0]='\0'; /* to stop oss-fuzz complaint below */ } if (new_text == NULL)