Commit 5891e454 authored by Michael Niedermayer's avatar Michael Niedermayer

faxcompr: fix out of array read

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 911519ca
...@@ -228,7 +228,7 @@ static int decode_group3_2d_line(AVCodecContext *avctx, GetBitContext *gb, ...@@ -228,7 +228,7 @@ static int decode_group3_2d_line(AVCodecContext *avctx, GetBitContext *gb,
mode = !mode; mode = !mode;
} }
//sync line pointers //sync line pointers
while(run_off <= offs){ while(offs < width && run_off <= offs){
run_off += *ref++; run_off += *ref++;
run_off += *ref++; run_off += *ref++;
} }
......
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