Browse Source

vp9/parser: change size type to unsigned.

Fixes valgrind errors in fuzzed8.ivf because size >= 0x80000000.
tags/n2.2-rc1
Ronald S. Bultje Clément Bœsch 11 years ago
parent
commit
c72f587353
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavcodec/vp9_parser.c

+ 2
- 2
libavcodec/vp9_parser.c View File

@@ -73,12 +73,12 @@ static int parse(AVCodecParserContext *ctx,
#define case_n(a, rd) \
case a: \
while (n_frames--) { \
int sz = rd; \
unsigned sz = rd; \
idx += a; \
if (sz > size) { \
s->n_frames = 0; \
av_log(avctx, AV_LOG_ERROR, \
"Superframe packet size too big: %d > %d\n", \
"Superframe packet size too big: %u > %d\n", \
sz, size); \
return size; \
} \


Loading…
Cancel
Save