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-15 00:20:38 +0200
commit55b3e408fa18b918bd0cabb1b27f1f0c4ce57a64 (patch)
tree59d536d570526b671709b02ab0e0415721588a06
parent9f1e01c9915fe0c86ad2b8f50e11fee9e1b00c62 (diff)
downloadffmpeg-55b3e408fa18b918bd0cabb1b27f1f0c4ce57a64.tar.gz
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>
-rw-r--r--libavcodec/faxcompr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/faxcompr.c b/libavcodec/faxcompr.c
index e93926f455..8215115054 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++;
}