[FFmpeg-devel] [PATCH] vp9/parser: change size type to unsigned.
Clément Bœsch
u at pkh.me
Sat Feb 8 12:57:34 CET 2014
On Sat, Feb 08, 2014 at 06:50:43AM -0500, Ronald S. Bultje wrote:
> Fixes valgrind errors in fuzzed8.ivf because size >= 0x80000000.
> ---
> libavcodec/vp9_parser.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/libavcodec/vp9_parser.c b/libavcodec/vp9_parser.c
> index 2de8937..af033c2 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; \
> } \
Thanks, applied
--
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140208/e4ee6e6f/attachment.asc>
More information about the ffmpeg-devel
mailing list