faxcompr: fix out of array read
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 5891e454a667e42ef71a06bfd9661540ea3f3ebd) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
9f1e01c991
commit
55b3e408fa
@ -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++;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user