Browse Source

tta: avoid undefined shifts

Signed-off-by: Diego Biurrun <diego@biurrun.de>
tags/n3.4
Anton Khirnov Diego Biurrun 8 years ago
parent
commit
4adbb44ad1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/tta.c

+ 1
- 1
libavcodec/tta.c View File

@@ -360,7 +360,7 @@ static int tta_decode_frame(AVCodecContext *avctx, void *data,
} }


if (k) { if (k) {
if (k > MIN_CACHE_BITS) {
if (k >= 32 || unary > INT32_MAX >> k) {
ret = AVERROR_INVALIDDATA; ret = AVERROR_INVALIDDATA;
goto error; goto error;
} }


Loading…
Cancel
Save