faxcompr: fix out of array read
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit5891e454a6
) Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit55b3e408fa
) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -228,7 +228,7 @@ static int decode_group3_2d_line(AVCodecContext *avctx, GetBitContext *gb,
|
||||
mode = !mode;
|
||||
}
|
||||
//sync line pointers
|
||||
while(run_off <= offs){
|
||||
while(offs < width && run_off <= offs){
|
||||
run_off += *ref++;
|
||||
run_off += *ref++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user