diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2015-09-01 00:01:23 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-09-01 00:44:39 +0300 |
commit | a1a32fdb0ee63783d06c63b7d90bb382eea356ce (patch) | |
tree | e6536a1dce0591de50c130f3af9752a063573908 /libavcodec/movtextdec.c | |
parent | baeb8f5f7149a5287f015f145eeb3ab18e2bc43c (diff) |
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>
Diffstat (limited to 'libavcodec/movtextdec.c')
-rw-r--r-- | libavcodec/movtextdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/movtextdec.c b/libavcodec/movtextdec.c index 8f1015ab8e..bdef856aa6 100644 --- a/libavcodec/movtextdec.c +++ b/libavcodec/movtextdec.c @@ -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; |