[FFmpeg-cvslog] faxcompr: fix out of array read
Michael Niedermayer
git at videolan.org
Wed Sep 19 02:32:43 CEST 2012
ffmpeg | branch: release/0.10 | Michael Niedermayer <michaelni at gmx.at> | Fri Sep 7 12:35:41 2012 +0200| [d36c706b868b4801bb5e9756bf921ecc8ca8ae10] | 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>
(cherry picked from commit 55b3e408fa18b918bd0cabb1b27f1f0c4ce57a64)
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d36c706b868b4801bb5e9756bf921ecc8ca8ae10
---
libavcodec/faxcompr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/faxcompr.c b/libavcodec/faxcompr.c
index c157b98..f66d33f 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