mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libpng17] Quieted Coverity issues in pngfix.c, png-fix-itxt.c, pngvalid.c,
pngstest.c, and pngimage.c. Most seem harmless, but png-fix-itxt would only work with iTXt chunks with length 255 or less.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
*
|
||||
* Copyright (c) 2014-2015 John Cunningham Bowler
|
||||
*
|
||||
* Last changed in libpng 1.6.17 [(PENDING RELEASE)]
|
||||
* Last changed in libpng 1.6.18 [(PENDING RELEASE)]
|
||||
*
|
||||
* This code is released under the libpng license.
|
||||
* For conditions of distribution and use, see the disclaimer
|
||||
@@ -3853,6 +3853,7 @@ usage(const char *prog)
|
||||
int
|
||||
main(int argc, const char **argv)
|
||||
{
|
||||
char temp_name[FILENAME_MAX+1];
|
||||
const char * prog = *argv;
|
||||
const char * outfile = NULL;
|
||||
const char * suffix = NULL;
|
||||
@@ -3955,7 +3956,6 @@ main(int argc, const char **argv)
|
||||
else
|
||||
{
|
||||
size_t outlen = strlen(*argv);
|
||||
char temp_name[FILENAME_MAX+1];
|
||||
|
||||
if (outfile == NULL) /* else this takes precedence */
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user