[libpng17] Fixed another Coverity defect, NULL dereference "ps" in pngwutil.c

This commit is contained in:
Glenn Randers-Pehrson
2016-01-08 18:59:36 -06:00
parent 27e11dc8cf
commit 09a1afbb3d
3 changed files with 6 additions and 4 deletions

View File

@@ -2272,7 +2272,7 @@ png_start_IDAT(png_structrp png_ptr)
}
# endif /* WRITE_FILTER */
if (ps->zlib_strategy == (-1)/*unset*/)
if (ps && ps->zlib_strategy == (-1)/*unset*/)
{
# ifdef PNG_WRITE_FILTER_SUPPORTED
if (ps->filter_mask != PNG_FILTER_NONE)