diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-09-07 14:35:41 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-09-19 03:08:24 +0400 |
commit | d36c706b868b4801bb5e9756bf921ecc8ca8ae10 (patch) | |
tree | a53d88012031a8fb50bf4e3ef34249f9986e3b72 | |
parent | fcb8bbf26411d9abc71a9a6d74e44c81b6699983 (diff) |
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>
(cherry picked from commit 55b3e408fa18b918bd0cabb1b27f1f0c4ce57a64)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/faxcompr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/faxcompr.c b/libavcodec/faxcompr.c index c157b984d3..f66d33f133 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++; } |