mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 03:59:43 +00:00
avidec: use actually read size instead of requested size
Fixes CVE-2012-2788
This commit is contained in:
parent
eeade678f0
commit
0af49a63c7
@ -1116,7 +1116,7 @@ resync:
|
||||
}
|
||||
ast->frame_offset += get_duration(ast, pkt->size);
|
||||
}
|
||||
ast->remaining -= size;
|
||||
ast->remaining -= err;
|
||||
if(!ast->remaining){
|
||||
avi->stream_index= -1;
|
||||
ast->packet_size= 0;
|
||||
|
Loading…
Reference in New Issue
Block a user