fix some potential security issues, patch by Matthias Hopf, mat at mshopf dot de
Originally committed as revision 7153 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
		
				
					committed by
					
						
						Baptiste Coudurier
					
				
			
			
				
	
			
			
			
						parent
						
							ba2433e9f5
						
					
				
				
					commit
					1e25a7e7eb
				
			@@ -472,7 +472,10 @@ static int alac_decode_frame(AVCodecContext *avctx,
 | 
				
			|||||||
                ALAC_EXTRADATA_SIZE);
 | 
					                ALAC_EXTRADATA_SIZE);
 | 
				
			||||||
            return input_buffer_size;
 | 
					            return input_buffer_size;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        alac_set_info(alac);
 | 
					        if (alac_set_info(alac)) {
 | 
				
			||||||
 | 
					            av_log(avctx, AV_LOG_ERROR, "alac: set_info failed\n");
 | 
				
			||||||
 | 
					            return input_buffer_size;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
        alac->context_initialized = 1;
 | 
					        alac->context_initialized = 1;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -335,7 +335,8 @@ static int shorten_decode_frame(AVCodecContext *avctx,
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
        s->nwrap = FFMAX(NWRAP, maxnlpc);
 | 
					        s->nwrap = FFMAX(NWRAP, maxnlpc);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        allocate_buffers(s);
 | 
					        if (allocate_buffers(s))
 | 
				
			||||||
 | 
					            return -1;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        init_offset(s);
 | 
					        init_offset(s);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user