Commit c41ac870 authored by Michael Niedermayer's avatar Michael Niedermayer

avidec: update size when packet is shrunk

Fixes out of array read

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 3f80546d
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment