summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2014-02-08 06:50:43 -0500
committerClément Bœsch <u@pkh.me>2014-02-08 12:53:59 +0100
commitc72f587353d9f88c7fbbbf6ef78b1d9ba3d38fd7 (patch)
treebf733d5f257306fee3d7defca3870332a4d28481
parent3b6655ebff7c63271c55c4a909f9d9b512751041 (diff)
downloadffmpeg-c72f587353d9f88c7fbbbf6ef78b1d9ba3d38fd7.tar.gz
vp9/parser: change size type to unsigned.
Fixes valgrind errors in fuzzed8.ivf because size >= 0x80000000.
-rw-r--r--libavcodec/vp9_parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vp9_parser.c b/libavcodec/vp9_parser.c
index 2de8937532..af033c25e6 100644
--- a/libavcodec/vp9_parser.c
+++ b/libavcodec/vp9_parser.c
@@ -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; \
} \