From 88507b4ef9f94308d39f60b57dd2031fde9551ef Mon Sep 17 00:00:00 2001 From: Glenn Randers-Pehrson Date: Sat, 23 Nov 2013 12:26:00 -0600 Subject: [PATCH] [libpng16] Avoid a clang scanner warning 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 30df33a42..3c70b81ad 100644 --- a/contrib/tools/pngfix.c +++ b/contrib/tools/pngfix.c @@ -3336,6 +3336,8 @@ read_callback(png_structp png_ptr, png_bytep buffer, size_t count) /* FALL THROUGH */ default: + assert(chunk != NULL); + /* NOTE: the arithmetic below overflows and gives a large positive * png_uint_32 value until the whole chunk data has been written. */