aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/pixdesc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-09-13 20:51:04 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-09-13 20:51:04 +0200
commita25585bb50720ca14c34c297a82435774b40441e (patch)
tree00b9d8ee3b4d8db04e026b9807738644d0f3904c /libavutil/pixdesc.c
parentfc477263fadd22434ac0ad8ab9ad15b41dd9be98 (diff)
downloadffmpeg-a25585bb50720ca14c34c297a82435774b40441e.tar.gz
avutil/pixdesc: Prevent minor array overread in ff_check_pixfmt_descriptors()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/pixdesc.c')
-rw-r--r--libavutil/pixdesc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/pixdesc.c b/libavutil/pixdesc.c
index 4c46921e62..b89b99e85c 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;