[FFmpeg-cvslog] faxcompr: fix out of array read
Michael Niedermayer
git at videolan.org
Sat Sep 15 01:57:30 CEST 2012
ffmpeg | branch: release/0.11 | Michael Niedermayer <michaelni at gmx.at> | Fri Sep 7 12:35:41 2012 +0200| [55b3e408fa18b918bd0cabb1b27f1f0c4ce57a64] | committer: Michael Niedermayer
faxcompr: fix out of array read
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 5891e454a667e42ef71a06bfd9661540ea3f3ebd)
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=55b3e408fa18b918bd0cabb1b27f1f0c4ce57a64
---
libavcodec/faxcompr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/faxcompr.c b/libavcodec/faxcompr.c
index e93926f..8215115 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++;
}
More information about the ffmpeg-cvslog
mailing list