mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-29 22:40:23 +00:00
avidec: update size when packet is shrunk
Fixes out of array read Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
3f80546d75
commit
c41ac87047
@ -1125,6 +1125,7 @@ resync:
|
||||
err= av_get_packet(pb, pkt, size);
|
||||
if(err<0)
|
||||
return err;
|
||||
size = err;
|
||||
|
||||
if(ast->has_pal && pkt->data && pkt->size<(unsigned)INT_MAX/2){
|
||||
uint8_t *pal;
|
||||
|
Loading…
Reference in New Issue
Block a user