[libng17] Suppressed bogus Coverity issues in pngrutil.c and pngwutil.c.

This commit is contained in:
Glenn Randers-Pehrson
2015-09-19 22:47:59 -05:00
parent 69f2152c0f
commit d555056b24
4 changed files with 9 additions and 0 deletions

View File

@@ -4159,8 +4159,10 @@ png_read_process_IDAT(png_structrp png_ptr)
/* This can be temporary; it verifies the invariants on how
* png_inflate_IDAT updates the {next,avail}_out fields:
*/
#ifndef __COVERITY__ /* Suppress bogus Coverity complaint */
debug(png_ptr->zstream.avail_out == 1-cb &&
png_ptr->zstream.next_out == cb + &png_ptr->next_filter);
#endif
/* next_out points into png_struct, for security do this: */
png_ptr->zstream.next_out = NULL;