[FFmpeg-cvslog] avutil/pixdesc: Prevent minor array overread in ff_check_pixfmt_descriptors()
Michael Niedermayer
git at videolan.org
Fri Sep 13 20:58:23 CEST 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Sep 13 20:51:04 2013 +0200| [a25585bb50720ca14c34c297a82435774b40441e] | committer: Michael Niedermayer
avutil/pixdesc: Prevent minor array overread in ff_check_pixfmt_descriptors()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a25585bb50720ca14c34c297a82435774b40441e
---
libavutil/pixdesc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavutil/pixdesc.c b/libavutil/pixdesc.c
index 4c46921..b89b99e 100644
--- a/libavutil/pixdesc.c
+++ b/libavutil/pixdesc.c
@@ -1987,7 +1987,7 @@ void ff_check_pixfmt_descriptors(void){
av_assert0(8*(c->step_minus1+1) >= c->depth_minus1+1);
}
av_read_image_line(tmp, (void*)data, linesize, d, 0, 0, j, 2, 0);
- if (!memcmp(d->name, "bayer_", 6))
+ if (!strncmp(d->name, "bayer_", 6))
continue;
av_assert0(tmp[0] == 0 && tmp[1] == 0);
tmp[0] = tmp[1] = (1<<(c->depth_minus1 + 1)) - 1;
More information about the ffmpeg-cvslog
mailing list