[libpng16] Still another attempt to fix oss-fuzz uninitialized value

This commit is contained in:
Glenn Randers-Pehrson
2017-09-15 08:20:23 -05:00
parent 1c98b85886
commit d1a0937cae
2 changed files with 8 additions and 5 deletions

View File

@@ -881,7 +881,7 @@ png_set_text_2(png_const_structrp png_ptr, png_inforp info_ptr,
}
# endif
/* oss-fuzz detects a potential UMR here */
/* oss-fuzz detects potential use of uninitialized value here */
if (text_ptr[i].text == NULL || text_ptr[i].text[0] == '\0')
{
text_length = 0;