Browse Source

faxcompr: fix out of array read

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.0
Michael Niedermayer 13 years ago
parent
commit
5891e454a6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/faxcompr.c

+ 1
- 1
libavcodec/faxcompr.c View File

@@ -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…
Cancel
Save