[FFmpeg-devel] [PATCH 2/2] avformat/mpjpegdec: fix strict boundary search string

Moritz Barsnick barsnick at gmx.net
Sun May 26 23:41:51 EEST 2019


On Fri, May 24, 2019 at 11:58:51 +0200, Michael Niedermayer wrote:
> >          if (boundary != NULL) {
> > -            mpjpeg->boundary = boundary;
> > -            mpjpeg->searchstr = av_asprintf( "\r\n%s\r\n", boundary );
> > +            mpjpeg->boundary = av_asprintf("--%s", boundary);
>
> memleak

Thanks for noticing. I'll post a V2 - verified with valgrind.

> also a testcase would be good to have, idealy in fate

Will try.

Moritz


More information about the ffmpeg-devel mailing list