[FFmpeg-devel] [PATCH] mpegvideo_parser: fix buffer access beyond end

Carl Eugen Hoyos cehoyos at ag.or.at
Thu Dec 6 17:18:34 CET 2012


Wolfram Gloger <video06 <at> malloc.de> writes:

>     mpegvideo_parser: fix buffer access beyond end

> +++ b/libavcodec/mpegvideo_parser.c
> @@ -56,6 +56,7 @@ static void mpegvideo_extract_headers
>          case PICTURE_START_CODE:
>              if (bytes_left >= 2) {
>                  s->pict_type = (buf[1] >> 3) & 7;
> +                if (bytes_left >= 4)

Michael has applied the patch yesterday.

Thank you, Carl Eugen



More information about the ffmpeg-devel mailing list