[FFmpeg-soc] [soc]: r5186 - concat/libavformat/playlist.c

Reimar Döffinger Reimar.Doeffinger at gmx.de
Thu Aug 20 11:45:35 CEST 2009


On Thu, Aug 20, 2009 at 11:18:37AM +0200, gkovacs wrote:
> Modified: concat/libavformat/playlist.c
> ==============================================================================
> --- concat/libavformat/playlist.c	Thu Aug 20 10:56:59 2009	(r5185)
> +++ concat/libavformat/playlist.c	Thu Aug 20 11:18:37 2009	(r5186)
> @@ -111,6 +111,10 @@ void ff_playlist_split_encodedstring(con
>          if (c == sep) {
>              sepidx[len] = ts-s;
>              sepidx = av_fast_realloc(sepidx, &buflen, ++len);
> +            if (!sepidx) {
> +                av_log(NULL, AV_LOG_ERROR, "av_fast_realloc error in ff_playlist_split_encodedstring\n");
> +                continue;

Note that this leaks memory, the original pointer is still valid.


More information about the FFmpeg-soc mailing list