mirror of
				https://git.code.sf.net/p/libpng/code.git
				synced 2025-07-10 18:04:09 +02:00 
			
		
		
		
	[libpng17] Fix some indentation in pngrutil.c
(bug report and patch by Patrick Keshishian).
This commit is contained in:
		
							parent
							
								
									e1c7c0402c
								
							
						
					
					
						commit
						0b02a667cf
					
				
							
								
								
									
										4
									
								
								ANNOUNCE
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								ANNOUNCE
									
									
									
									
									
								
							@ -1,5 +1,5 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
Libpng 1.7.0beta85 - October 2, 2016
 | 
					Libpng 1.7.0beta85 - December 27, 2016
 | 
				
			||||||
 | 
					
 | 
				
			||||||
This is not intended to be a public release.  It will be replaced
 | 
					This is not intended to be a public release.  It will be replaced
 | 
				
			||||||
within a few weeks by a public version or by another test version.
 | 
					within a few weeks by a public version or by another test version.
 | 
				
			||||||
@ -1408,7 +1408,7 @@ Version 1.7.0beta84 [September 26, 2016]
 | 
				
			|||||||
  Issue png_benign_error() on ADLER32 checksum mismatch instead of png_error().
 | 
					  Issue png_benign_error() on ADLER32 checksum mismatch instead of png_error().
 | 
				
			||||||
  Add tests/badcrc.png and tests/badadler.png to tests/pngtest.
 | 
					  Add tests/badcrc.png and tests/badadler.png to tests/pngtest.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Version 1.7.0beta85 [October 2, 2016]
 | 
					Version 1.7.0beta85 [December 27, 2016]
 | 
				
			||||||
  Updated the documentation about CRC and ADLER32 handling.
 | 
					  Updated the documentation about CRC and ADLER32 handling.
 | 
				
			||||||
  Quieted warnings from clang-3.8 in pngunknown.c and pngvalid.c.
 | 
					  Quieted warnings from clang-3.8 in pngunknown.c and pngvalid.c.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										2
									
								
								CHANGES
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								CHANGES
									
									
									
									
									
								
							@ -5708,7 +5708,7 @@ Version 1.7.0beta84 [September 26, 2016]
 | 
				
			|||||||
  Issue png_benign_error() on ADLER32 checksum mismatch instead of png_error().
 | 
					  Issue png_benign_error() on ADLER32 checksum mismatch instead of png_error().
 | 
				
			||||||
  Add tests/badcrc.png and tests/badadler.png to tests/pngtest.
 | 
					  Add tests/badcrc.png and tests/badadler.png to tests/pngtest.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Version 1.7.0beta85 [October 2, 2016]
 | 
					Version 1.7.0beta85 [December 27, 2016]
 | 
				
			||||||
  Updated the documentation about CRC and ADLER32 handling.
 | 
					  Updated the documentation about CRC and ADLER32 handling.
 | 
				
			||||||
  Quieted warnings from clang-3.8 in pngunknown.c and pngvalid.c.
 | 
					  Quieted warnings from clang-3.8 in pngunknown.c and pngvalid.c.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										4
									
								
								png.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								png.c
									
									
									
									
									
								
							@ -704,14 +704,14 @@ png_get_copyright(png_const_structrp png_ptr)
 | 
				
			|||||||
#else
 | 
					#else
 | 
				
			||||||
#  ifdef __STDC__
 | 
					#  ifdef __STDC__
 | 
				
			||||||
   return PNG_STRING_NEWLINE \
 | 
					   return PNG_STRING_NEWLINE \
 | 
				
			||||||
     "libpng version 1.7.0beta85 - September 26, 2016" PNG_STRING_NEWLINE \
 | 
					     "libpng version 1.7.0beta85 - December 27, 2016" PNG_STRING_NEWLINE \
 | 
				
			||||||
     "Copyright (c) 1998-2002,2004,2006-2016 Glenn Randers-Pehrson" \
 | 
					     "Copyright (c) 1998-2002,2004,2006-2016 Glenn Randers-Pehrson" \
 | 
				
			||||||
     PNG_STRING_NEWLINE \
 | 
					     PNG_STRING_NEWLINE \
 | 
				
			||||||
     "Copyright (c) 1996-1997 Andreas Dilger" PNG_STRING_NEWLINE \
 | 
					     "Copyright (c) 1996-1997 Andreas Dilger" PNG_STRING_NEWLINE \
 | 
				
			||||||
     "Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc." \
 | 
					     "Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc." \
 | 
				
			||||||
     PNG_STRING_NEWLINE;
 | 
					     PNG_STRING_NEWLINE;
 | 
				
			||||||
#  else
 | 
					#  else
 | 
				
			||||||
      return "libpng version 1.7.0beta85 - September 26, 2016\
 | 
					      return "libpng version 1.7.0beta85 - December 27, 2016\
 | 
				
			||||||
      Copyright (c) 1998-2002,2004,2006-2016 Glenn Randers-Pehrson\
 | 
					      Copyright (c) 1998-2002,2004,2006-2016 Glenn Randers-Pehrson\
 | 
				
			||||||
      Copyright (c) 1996-1997 Andreas Dilger\
 | 
					      Copyright (c) 1996-1997 Andreas Dilger\
 | 
				
			||||||
      Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.";
 | 
					      Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.";
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										18
									
								
								pngrutil.c
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								pngrutil.c
									
									
									
									
									
								
							@ -540,14 +540,14 @@ png_decompress_chunk(png_structrp png_ptr,
 | 
				
			|||||||
    */
 | 
					    */
 | 
				
			||||||
   png_alloc_size_t limit = PNG_SIZE_MAX;
 | 
					   png_alloc_size_t limit = PNG_SIZE_MAX;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#  ifdef PNG_SET_USER_LIMITS_SUPPORTED
 | 
					#ifdef PNG_SET_USER_LIMITS_SUPPORTED
 | 
				
			||||||
      if (png_ptr->user_chunk_malloc_max > 0 &&
 | 
					   if (png_ptr->user_chunk_malloc_max > 0 &&
 | 
				
			||||||
         png_ptr->user_chunk_malloc_max < limit)
 | 
					      png_ptr->user_chunk_malloc_max < limit)
 | 
				
			||||||
         limit = png_ptr->user_chunk_malloc_max;
 | 
					      limit = png_ptr->user_chunk_malloc_max;
 | 
				
			||||||
#  elif PNG_USER_CHUNK_MALLOC_MAX > 0
 | 
					#elif PNG_USER_CHUNK_MALLOC_MAX > 0
 | 
				
			||||||
      if (PNG_USER_CHUNK_MALLOC_MAX < limit)
 | 
					   if (PNG_USER_CHUNK_MALLOC_MAX < limit)
 | 
				
			||||||
         limit = PNG_USER_CHUNK_MALLOC_MAX;
 | 
					      limit = PNG_USER_CHUNK_MALLOC_MAX;
 | 
				
			||||||
#  endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   if (limit >= prefix_size + (terminate != 0))
 | 
					   if (limit >= prefix_size + (terminate != 0))
 | 
				
			||||||
   {
 | 
					   {
 | 
				
			||||||
@ -641,7 +641,7 @@ png_decompress_chunk(png_structrp png_ptr,
 | 
				
			|||||||
                   */
 | 
					                   */
 | 
				
			||||||
                  if (ret == Z_STREAM_END &&
 | 
					                  if (ret == Z_STREAM_END &&
 | 
				
			||||||
                      chunklength - prefix_size != lzsize)
 | 
					                      chunklength - prefix_size != lzsize)
 | 
				
			||||||
                      png_chunk_benign_error(png_ptr, "extra compressed data");
 | 
					                     png_chunk_benign_error(png_ptr, "extra compressed data");
 | 
				
			||||||
               }
 | 
					               }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
               else
 | 
					               else
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user