mirror of
				https://git.code.sf.net/p/libpng/code.git
				synced 2025-07-10 18:04:09 +02:00 
			
		
		
		
	[libng17] Avoid Coverity issue 80858 (REVERSE NULL) in pngtest.c
PNG_DEBUG builds
This commit is contained in:
		
							parent
							
								
									5d2841d272
								
							
						
					
					
						commit
						dc6cddd798
					
				
							
								
								
									
										5
									
								
								ANNOUNCE
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								ANNOUNCE
									
									
									
									
									
								
							@ -1,5 +1,5 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
Libpng 1.7.0beta61 - May 6, 2015
 | 
					Libpng 1.7.0beta61 - May 10, 2015
 | 
				
			||||||
 | 
					
 | 
				
			||||||
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.
 | 
				
			||||||
@ -799,7 +799,8 @@ Version 1.7.0beta60 [May 6, 2015]
 | 
				
			|||||||
  Replaced "unexpected" with an integer (0xabadca11) in pngset.c
 | 
					  Replaced "unexpected" with an integer (0xabadca11) in pngset.c
 | 
				
			||||||
    where a long was expected, to avoid a compiler warning when PNG_DEBUG > 1.
 | 
					    where a long was expected, to avoid a compiler warning when PNG_DEBUG > 1.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Version 1.7.0beta61 [May 6, 2015]
 | 
					Version 1.7.0beta61 [May 10, 2015]
 | 
				
			||||||
 | 
					  Avoid Coverity issue 80858 (REVERSE NULL) in pngtest.c
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
 | 
					Send comments/corrections/commendations to png-mng-implement at lists.sf.net
 | 
				
			||||||
(subscription required; visit
 | 
					(subscription required; visit
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										3
									
								
								CHANGES
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								CHANGES
									
									
									
									
									
								
							@ -5089,7 +5089,8 @@ Version 1.7.0beta60 [May 6, 2015]
 | 
				
			|||||||
  Replaced "unexpected" with an integer (0xabadca11) in pngset.c
 | 
					  Replaced "unexpected" with an integer (0xabadca11) in pngset.c
 | 
				
			||||||
    where a long was expected, to avoid a compiler warning when PNG_DEBUG > 1.
 | 
					    where a long was expected, to avoid a compiler warning when PNG_DEBUG > 1.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Version 1.7.0beta61 [May 6, 2015]
 | 
					Version 1.7.0beta61 [May 10, 2015]
 | 
				
			||||||
 | 
					  Avoid Coverity issue 80858 (REVERSE NULL) in pngtest.c
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
 | 
					Send comments/corrections/commendations to png-mng-implement at lists.sf.net
 | 
				
			||||||
(subscription required; visit
 | 
					(subscription required; visit
 | 
				
			||||||
 | 
				
			|||||||
@ -1,7 +1,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
/* pngtest.c - a simple test program to test libpng
 | 
					/* pngtest.c - a simple test program to test libpng
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * Last changed in libpng 1.6.17 [March 26, 2015]
 | 
					 * Last changed in libpng 1.6.18 [(PENDING RELEASE)]
 | 
				
			||||||
 * Copyright (c) 1998-2015 Glenn Randers-Pehrson
 | 
					 * Copyright (c) 1998-2015 Glenn Randers-Pehrson
 | 
				
			||||||
 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
 | 
					 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
 | 
				
			||||||
 * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
 | 
					 * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
 | 
				
			||||||
@ -565,6 +565,7 @@ png_debug_free(png_structp png_ptr, png_voidp ptr)
 | 
				
			|||||||
   }
 | 
					   }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   /* Unlink the element from the list. */
 | 
					   /* Unlink the element from the list. */
 | 
				
			||||||
 | 
					   if (pinformation != NULL)
 | 
				
			||||||
   {
 | 
					   {
 | 
				
			||||||
      memory_infop *ppinfo = &pinformation;
 | 
					      memory_infop *ppinfo = &pinformation;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -581,7 +582,6 @@ png_debug_free(png_structp png_ptr, png_voidp ptr)
 | 
				
			|||||||
            /* We must free the list element too, but first kill
 | 
					            /* We must free the list element too, but first kill
 | 
				
			||||||
               the memory that is to be freed. */
 | 
					               the memory that is to be freed. */
 | 
				
			||||||
            memset(ptr, 0x55, pinfo->size);
 | 
					            memset(ptr, 0x55, pinfo->size);
 | 
				
			||||||
            if (pinfo != NULL)
 | 
					 | 
				
			||||||
            free(pinfo);
 | 
					            free(pinfo);
 | 
				
			||||||
            pinfo = NULL;
 | 
					            pinfo = NULL;
 | 
				
			||||||
            break;
 | 
					            break;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user