commit | 721b96ef902112c6d41db119ccc3129156714628 | [log] [tgz] |
---|---|---|
author | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | Mon Sep 18 14:23:41 2017 -0500 |
committer | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | Mon Sep 18 14:23:41 2017 -0500 |
tree | 78b5fc9013ba63a383e538543192f19e11d35b61 | |
parent | 562a68513e1bc14c1d181a58dd305bb354780709 [diff] |
[libpng16] zero out memory allocated by png_inflate
diff --git a/pngrutil.c b/pngrutil.c index 9dc8825..95e2b81 100644 --- a/pngrutil.c +++ b/pngrutil.c
@@ -670,6 +670,10 @@ (terminate != 0); png_bytep text = png_voidcast(png_bytep, png_malloc_base(png_ptr, buffer_size)); + /* attempt to stop an oss-fuzz "use of uninitialized value" + * in png_set_text_2() + */ + memset(text, 0, buffer_size); if (text != NULL) {