Commit 0c1a6f57 authored by Hendrik Leppkes's avatar Hendrik Leppkes

Merge commit 'de41b555'

* commit 'de41b555':
  truemotion2: Fix the buffer check
Merged-by: 's avatarHendrik Leppkes <h.leppkes@gmail.com>
parents 446ac80e de41b555
......@@ -303,8 +303,8 @@ static int tm2_read_stream(TM2Context *ctx, const uint8_t *buf, int stream_id, i
if (len == 0)
return 4;
if (len >= INT_MAX/4-1 || len < 0 || skip > buf_size) {
av_log(ctx->avctx, AV_LOG_ERROR, "invalid stream size\n");
if (len >= INT_MAX / 4 - 1 || len < 0 || skip > buf_size) {
av_log(ctx->avctx, AV_LOG_ERROR, "Error, invalid stream size.\n");
return AVERROR_INVALIDDATA;
}
......
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