mirror of
				https://github.com/nyanmisaka/ffmpeg-rockchip.git
				synced 2025-10-31 20:42:49 +08:00 
			
		
		
		
	parser: fix large overreads
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
This commit is contained in:
		 Michael Niedermayer
					Michael Niedermayer
				
			
				
					committed by
					
						 Justin Ruggles
						Justin Ruggles
					
				
			
			
				
	
			
			
			 Justin Ruggles
						Justin Ruggles
					
				
			
						parent
						
							41540b36a1
						
					
				
				
					commit
					096abfa150
				
			| @@ -254,7 +254,9 @@ int ff_combine_frame(ParseContext *pc, int next, const uint8_t **buf, int *buf_s | ||||
|         if(!new_buffer) | ||||
|             return AVERROR(ENOMEM); | ||||
|         pc->buffer = new_buffer; | ||||
|         memcpy(&pc->buffer[pc->index], *buf, next + FF_INPUT_BUFFER_PADDING_SIZE ); | ||||
|         if (next > -FF_INPUT_BUFFER_PADDING_SIZE) | ||||
|             memcpy(&pc->buffer[pc->index], *buf, | ||||
|                    next + FF_INPUT_BUFFER_PADDING_SIZE); | ||||
|         pc->index = 0; | ||||
|         *buf= pc->buffer; | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user