aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-11 21:26:05 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-12 00:08:28 +0200
commit1b5069aa41ce3c0ce21e3fbea7ef14bac403e48e (patch)
tree1e33d8987fe27fd4d6425bd63eae2b35b0e219a5 /libavcodec
parent59cbedfc3df3bc3386407064dbda86962ba33c2f (diff)
downloadffmpeg-1b5069aa41ce3c0ce21e3fbea7ef14bac403e48e.tar.gz
sanm: fix off by 1 error in draw_glyph()
This fix changes nothing as nothing passed a so large value Fixes CID733785 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/sanm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/sanm.c b/libavcodec/sanm.c
index 2a04706c2e..c39d269a41 100644
--- a/libavcodec/sanm.c
+++ b/libavcodec/sanm.c
@@ -802,7 +802,7 @@ static int draw_glyph(SANMVideoContext *ctx, uint16_t *dst, int index, uint16_t
uint16_t colors[2] = { fg_color, bg_color };
int x, y;
- if (index > NGLYPHS) {
+ if (index >= NGLYPHS) {
av_log(ctx->avctx, AV_LOG_ERROR, "ignoring nonexistent glyph #%u\n", index);
return AVERROR_INVALIDDATA;
}