Browse Source

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>
tags/n1.1
Michael Niedermayer 12 years ago
parent
commit
1b5069aa41
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/sanm.c

+ 1
- 1
libavcodec/sanm.c View File

@@ -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;
}


Loading…
Cancel
Save