Commit b671ebfd authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/mlvdec: read_string() received unsigned size, make the argument unsigned

Fixes: infinite loop
Fixes: mlv-timeout-e3b8cab9835edecad6823baa057e029671329d04
Found-by: 's avatarPaul Ch <paulcher@icloud.com>
Reviewed-by: 's avatarPaul B Mahol <onemda@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 1e71cb2c)
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent bb070fc4
......@@ -76,7 +76,7 @@ static int check_file_header(AVIOContext *pb, uint64_t guid)
return 0;
}
static void read_string(AVFormatContext *avctx, AVIOContext *pb, const char *tag, int size)
static void read_string(AVFormatContext *avctx, AVIOContext *pb, const char *tag, unsigned size)
{
char * value = av_malloc(size + 1);
if (!value) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment