Browse Source

avcodec/movtextdec: Make tx3g_ptr unsigned

Fixes integer overflow
Fixes: efe937780e95574250dabe07151bdc23/unknown_unknown_351_849_cov_3187578556_shellymanne.mov

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n2.8
Michael Niedermayer 10 years ago
parent
commit
a1a32fdb0e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/movtextdec.c

+ 1
- 1
libavcodec/movtextdec.c View File

@@ -132,7 +132,7 @@ static void mov_text_cleanup_ftab(MovTextContext *m)

static int mov_text_tx3g(AVCodecContext *avctx, MovTextContext *m)
{
char *tx3g_ptr = avctx->extradata;
uint8_t *tx3g_ptr = avctx->extradata;
int i, box_size, font_length;
int8_t v_align, h_align;
int style_fontID;


Loading…
Cancel
Save