aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-09-07 12:35:41 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-09-07 12:36:00 +0200
commit5891e454a667e42ef71a06bfd9661540ea3f3ebd (patch)
tree2d8fb97a08c4f62162e0fa7a996f8802501da3b0
parent911519caec2346fc7728bca9840ffc000e866161 (diff)
downloadffmpeg-5891e454a667e42ef71a06bfd9661540ea3f3ebd.tar.gz
faxcompr: fix out of array read
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/faxcompr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/faxcompr.c b/libavcodec/faxcompr.c
index 5aa7885679..e7f9d00a11 100644
--- a/libavcodec/faxcompr.c
+++ b/libavcodec/faxcompr.c
@@ -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++;
}