Skip to content
Snippets Groups Projects
Commit c72f5873 authored by Ronald S. Bultje's avatar Ronald S. Bultje Committed by Clément Bœsch
Browse files

vp9/parser: change size type to unsigned.

Fixes valgrind errors in fuzzed8.ivf because size >= 0x80000000.
parent 3b6655eb
No related branches found
No related tags found
No related merge requests found
......@@ -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; \
} \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment