mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-18 05:24:42 +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