diff options
author | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2013-11-23 12:26:00 -0600 |
---|---|---|
committer | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2013-11-23 12:26:00 -0600 |
commit | 88507b4ef9f94308d39f60b57dd2031fde9551ef (patch) | |
tree | 23533e8327edcd7ea913d3c58ff4fd4309c18d39 /contrib/tools/pngfix.c | |
parent | 0f6303301f1fe89618497cf3d1887f1a3f67ea2e (diff) | |
download | libpng-88507b4ef9f94308d39f60b57dd2031fde9551ef.tar.gz |
[libpng16] Avoid a clang scanner warning in pngfix.c
Diffstat (limited to 'contrib/tools/pngfix.c')
-rw-r--r-- | contrib/tools/pngfix.c | 2 |
1 files changed, 2 insertions, 0 deletions
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. */ |