Re: [FFmpeg-devel] [PATCH] avcodec/ass: Fix a memory leak defect.

2018-12-04 Thread Carl Eugen Hoyos
2018-02-13 8:51 GMT+01:00, Gang Fan(范刚) : > Here is the patch. Ping. If this gets applied, please mention ticket #7019. Thank you, Carl Eugen ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] [PATCH] avcodec/ass: Fix a memory leak defect.

2018-02-12 Thread 范刚
Here is the patch. On Tue, Feb 13, 2018 at 3:30 PM, Gang Fan(范刚) wrote: > Thanks for the advice, let me have another try. > > On Tue, Feb 13, 2018 at 4:59 AM, wm4 wrote: > >> On Mon, 12 Feb 2018 20:56:25 +0800 >> Gang Fan(范刚) wrote: >> >> > Thanks to Hendrik >> > Here is the new patch: >> > >>

Re: [FFmpeg-devel] [PATCH] avcodec/ass: Fix a memory leak defect.

2018-02-12 Thread 范刚
Thanks for the advice, let me have another try. On Tue, Feb 13, 2018 at 4:59 AM, wm4 wrote: > On Mon, 12 Feb 2018 20:56:25 +0800 > Gang Fan(范刚) wrote: > > > Thanks to Hendrik > > Here is the new patch: > > > > From 642a413080f20f9515321e42056248e86e003997 Mon Sep 17 00:00:00 2001 > > From: Fan

Re: [FFmpeg-devel] [PATCH] avcodec/ass: Fix a memory leak defect.

2018-02-12 Thread wm4
On Mon, 12 Feb 2018 20:56:25 +0800 Gang Fan(范刚) wrote: > Thanks to Hendrik > Here is the new patch: > > From 642a413080f20f9515321e42056248e86e003997 Mon Sep 17 00:00:00 2001 > From: Fan Gang > Date: Mon, 12 Feb 2018 20:55:06 +0800 > Subject: [PATCH] avcodec/ass: Fix a memory leak defect when r

Re: [FFmpeg-devel] [PATCH] avcodec/ass: Fix a memory leak defect.

2018-02-12 Thread Hendrik Leppkes
On Mon, Feb 12, 2018 at 1:56 PM, Gang Fan(范刚) wrote: > Thanks to Hendrik > Here is the new patch: > > From 642a413080f20f9515321e42056248e86e003997 Mon Sep 17 00:00:00 2001 > From: Fan Gang > Date: Mon, 12 Feb 2018 20:55:06 +0800 > Subject: [PATCH] avcodec/ass: Fix a memory leak defect when reall

Re: [FFmpeg-devel] [PATCH] avcodec/ass: Fix a memory leak defect.

2018-02-12 Thread 范刚
Thanks to Hendrik Here is the new patch: From 642a413080f20f9515321e42056248e86e003997 Mon Sep 17 00:00:00 2001 From: Fan Gang Date: Mon, 12 Feb 2018 20:55:06 +0800 Subject: [PATCH] avcodec/ass: Fix a memory leak defect when realloc fails. --- libavcodec/ass_split.c | 6 ++ 1 file changed,

Re: [FFmpeg-devel] [PATCH] avcodec/ass: Fix a memory leak defect.

2018-02-12 Thread 范刚
OK, should I email the new patch to the same thread or a new thread? Thanks Gang On Mon, Feb 12, 2018 at 7:49 PM, Hendrik Leppkes wrote: > On Mon, Feb 12, 2018 at 11:55 AM, Gang Fan(范刚) > wrote: > > There is a potential memory leak bug in file ass_split.c, here is the > > description. > > > >

Re: [FFmpeg-devel] [PATCH] avcodec/ass: Fix a memory leak defect.

2018-02-12 Thread Hendrik Leppkes
On Mon, Feb 12, 2018 at 11:55 AM, Gang Fan(范刚) wrote: > There is a potential memory leak bug in file ass_split.c, here is the > description. > > A piece of memory is allocated on line 283. When executing the loop twice > and if the av_realloc_array returns null the function returns without > freei

[FFmpeg-devel] [PATCH] avcodec/ass: Fix a memory leak defect.

2018-02-12 Thread 范刚
There is a potential memory leak bug in file ass_split.c, here is the description. A piece of memory is allocated on line 283. When executing the loop twice and if the av_realloc_array returns null the function returns without freeing the memory pointed by order. Suggested fix: free(order) before