mirror of
				https://git.code.sf.net/p/libpng/code.git
				synced 2025-07-10 18:04:09 +02:00 
			
		
		
		
	[libpng16] Fixed uninitialized variable in contrib/gregbook/rpng2-x.c and
fixed potential leak of png_pixels in contrib/pngminus/pnm2png.c
This commit is contained in:
		
							parent
							
								
									77becc566f
								
							
						
					
					
						commit
						8510247b5f
					
				
							
								
								
									
										2
									
								
								ANNOUNCE
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								ANNOUNCE
									
									
									
									
									
								
							@ -37,6 +37,8 @@ Version 1.6.19beta01 [July 29, 2015]
 | 
				
			|||||||
  Suppressed some warnings from the Borland C++ 5.5.1/5.82 compiler
 | 
					  Suppressed some warnings from the Borland C++ 5.5.1/5.82 compiler
 | 
				
			||||||
    (Bug report by Viktor Szaka'ts).  Several warnings remain and are
 | 
					    (Bug report by Viktor Szaka'ts).  Several warnings remain and are
 | 
				
			||||||
    unavoidable, where we test for overflow.
 | 
					    unavoidable, where we test for overflow.
 | 
				
			||||||
 | 
					  Fixed potential leak of png_pixels in contrib/pngminus/pnm2png.c
 | 
				
			||||||
 | 
					  Fixed uninitialized variable in contrib/gregbook/rpng2-x.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
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										2
									
								
								CHANGES
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								CHANGES
									
									
									
									
									
								
							@ -5316,6 +5316,8 @@ Version 1.6.19beta01 [July 29, 2015]
 | 
				
			|||||||
  Suppressed some warnings from the Borland C++ 5.5.1/5.82 compiler
 | 
					  Suppressed some warnings from the Borland C++ 5.5.1/5.82 compiler
 | 
				
			||||||
    (Bug report by Viktor Szaka'ts).  Several warnings remain and are
 | 
					    (Bug report by Viktor Szaka'ts).  Several warnings remain and are
 | 
				
			||||||
    unavoidable, where we test for overflow.
 | 
					    unavoidable, where we test for overflow.
 | 
				
			||||||
 | 
					  Fixed potential leak of png_pixels in contrib/pngminus/pnm2png.c
 | 
				
			||||||
 | 
					  Fixed uninitialized variable in contrib/gregbook/rpng2-x.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
 | 
				
			||||||
 | 
				
			|||||||
@ -43,12 +43,10 @@
 | 
				
			|||||||
    - 2.03:  deleted runtime MMX-enabling/disabling and obsolete -mmx* options
 | 
					    - 2.03:  deleted runtime MMX-enabling/disabling and obsolete -mmx* options
 | 
				
			||||||
    - 2.04:  Added "void(foo);" statements to quiet pedantic compiler warnings
 | 
					    - 2.04:  Added "void(foo);" statements to quiet pedantic compiler warnings
 | 
				
			||||||
             about unused variables (GR-P)
 | 
					             about unused variables (GR-P)
 | 
				
			||||||
 | 
					    - 2.05:  Use nanosleep() instead of usleep(), which is deprecated (GR-P).
 | 
				
			||||||
  TO DO:
 | 
					 | 
				
			||||||
             use nanosleep() instead of usleep(), which is obsolete/deprecated.
 | 
					 | 
				
			||||||
  ---------------------------------------------------------------------------
 | 
					  ---------------------------------------------------------------------------
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      Copyright (c) 1998-2008 Greg Roelofs.  All rights reserved.
 | 
					      Copyright (c) 1998-2010, 2014-2015 Greg Roelofs.  All rights reserved.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      This software is provided "as is," without warranty of any kind,
 | 
					      This software is provided "as is," without warranty of any kind,
 | 
				
			||||||
      express or implied.  In no event shall the author or contributors
 | 
					      express or implied.  In no event shall the author or contributors
 | 
				
			||||||
@ -119,6 +117,7 @@
 | 
				
			|||||||
# undef usleep
 | 
					# undef usleep
 | 
				
			||||||
# define usleep(usec) {        \
 | 
					# define usleep(usec) {        \
 | 
				
			||||||
   struct timespec ts;         \
 | 
					   struct timespec ts;         \
 | 
				
			||||||
 | 
					   ts.tv_sec = 0;              \
 | 
				
			||||||
   ts.tv_nsec = (usec) * 1000; \
 | 
					   ts.tv_nsec = (usec) * 1000; \
 | 
				
			||||||
   nanosleep(&ts, NULL); }
 | 
					   nanosleep(&ts, NULL); }
 | 
				
			||||||
#  endif
 | 
					#  endif
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user