You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	avformat/ape: Use 64bit for final frame size
Fixes: CID1505963 Unintentional integer overflow
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit a2b8d03347)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
			
			
This commit is contained in:
		| @@ -317,7 +317,7 @@ static int ape_read_header(AVFormatContext * s) | |||||||
|         final_size -= final_size & 3; |         final_size -= final_size & 3; | ||||||
|     } |     } | ||||||
|     if (file_size <= 0 || final_size <= 0) |     if (file_size <= 0 || final_size <= 0) | ||||||
|         final_size = ape->finalframeblocks * 8; |         final_size = ape->finalframeblocks * 8LL; | ||||||
|     ape->frames[ape->totalframes - 1].size = final_size; |     ape->frames[ape->totalframes - 1].size = final_size; | ||||||
|  |  | ||||||
|     for (i = 0; i < ape->totalframes; i++) { |     for (i = 0; i < ape->totalframes; i++) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user