You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avidec: use actually read size instead of requested size
Fixes CVE-2012-2788
This commit is contained in:
@@ -1116,7 +1116,7 @@ resync:
|
|||||||
}
|
}
|
||||||
ast->frame_offset += get_duration(ast, pkt->size);
|
ast->frame_offset += get_duration(ast, pkt->size);
|
||||||
}
|
}
|
||||||
ast->remaining -= size;
|
ast->remaining -= err;
|
||||||
if(!ast->remaining){
|
if(!ast->remaining){
|
||||||
avi->stream_index= -1;
|
avi->stream_index= -1;
|
||||||
ast->packet_size= 0;
|
ast->packet_size= 0;
|
||||||
|
Reference in New Issue
Block a user