mirror of
				https://git.code.sf.net/p/libpng/code.git
				synced 2025-07-10 18:04:09 +02:00 
			
		
		
		
	[libpng14] Avoid a possible memory leak in contrib/gregbook/readpng.c
This commit is contained in:
		
							parent
							
								
									66c15e8126
								
							
						
					
					
						commit
						20cddc2d8e
					
				
							
								
								
									
										5
									
								
								ANNOUNCE
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								ANNOUNCE
									
									
									
									
									
								
							| @ -1,5 +1,5 @@ | ||||
| 
 | ||||
| Libpng 1.4.13beta03 - January 22, 2013 | ||||
| Libpng 1.4.13beta03 - March 1, 2013 | ||||
| 
 | ||||
| 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. | ||||
| @ -42,7 +42,8 @@ version 1.4.13beta02 [January 22, 2013] | ||||
|     in configure.ac | ||||
|   Changed default value of PNG_USER_CACHE_MAX from 0 to 32767 in pngconf.h. | ||||
| 
 | ||||
| version 1.4.13beta03 [January 22, 2013] | ||||
| version 1.4.13beta03 [March 1, 2013] | ||||
|   Avoid a possible memory leak in contrib/gregbook/readpng.c | ||||
| 
 | ||||
| Send comments/corrections/commendations to glennrp at users.sourceforge.net | ||||
| or to png-mng-implement at lists.sf.net (subscription required; visit | ||||
|  | ||||
							
								
								
									
										3
									
								
								CHANGES
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								CHANGES
									
									
									
									
									
								
							| @ -2884,7 +2884,8 @@ version 1.4.13beta02 [January 22, 2013] | ||||
|     in configure.ac | ||||
|   Changed default value of PNG_USER_CACHE_MAX from 0 to 32767 in pngconf.h. | ||||
| 
 | ||||
| version 1.4.13beta03 [January 22, 2013] | ||||
| version 1.4.13beta03 [March 1, 2013] | ||||
|   Avoid a possible memory leak in contrib/gregbook/readpng.c | ||||
| 
 | ||||
| Send comments/corrections/commendations to glennrp at users.sourceforge.net | ||||
| or to png-mng-implement at lists.sf.net (subscription required; visit | ||||
|  | ||||
| @ -214,6 +214,10 @@ uch *readpng_get_image(double display_exponent, int *pChannels, ulg *pRowbytes) | ||||
|      * libpng function */ | ||||
| 
 | ||||
|     if (setjmp(png_jmpbuf(png_ptr))) { | ||||
|         free(image_data); | ||||
|         image_data = NULL; | ||||
|         free(row_pointers); | ||||
|         row_pointers = NULL; | ||||
|         png_destroy_read_struct(&png_ptr, &info_ptr, NULL); | ||||
|         return NULL; | ||||
|     } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Glenn Randers-Pehrson
						Glenn Randers-Pehrson