Skip to content
Snippets Groups Projects
Commit 5891e454 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

faxcompr: fix out of array read

parent 911519ca
No related branches found
No related tags found
No related merge requests found
...@@ -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++;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment