From 27ae9362d8c5e998de57fd14f5235915d9e7b995 Mon Sep 17 00:00:00 2001 From: Glenn Randers-Pehrson Date: Sat, 23 Nov 2013 12:42:43 -0600 Subject: [PATCH] [libpng16] Added another "assert()" in pngfix.c --- contrib/tools/pngfix.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/tools/pngfix.c b/contrib/tools/pngfix.c index 3c70b81ad..e4ccc417b 100644 --- a/contrib/tools/pngfix.c +++ b/contrib/tools/pngfix.c @@ -3323,6 +3323,8 @@ read_callback(png_structp png_ptr, png_bytep buffer, size_t count) else { + assert(chunk != NULL); + /* Set up for write, notice that repositioning the input stream * is only necessary if something is to be read from it. Also * notice that for the IDAT stream this must only happen once -