mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libpng17] Fixed another Coverity defect, NULL dereference "ps" in pngwutil.c
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user