Re: [PATCH] Fix use-after-free in libps.

2016-02-28 Thread Diego Nieto Cid
On Sun, Feb 28, 2016 at 10:43:04AM +0100, Samuel Thibault wrote: > Esa Peuha, on Sun 28 Feb 2016 11:00:07 +0200, wrote: > > > The attachment is the entire output of git format-patch; I think it's > > the best I can do when using Gmail to send mail. > > That will work fine, but it'll be tedious fo

Re: [PATCH] Fix use-after-free in libps.

2016-02-28 Thread Samuel Thibault
Esa Peuha, on Sun 28 Feb 2016 11:00:07 +0200, wrote: > Here is a patch to fix a use-after-free bug in libps. Good catch, thanks! > The attachment is the entire output of git format-patch; I think it's > the best I can do when using Gmail to send mail. That will work fine, but it'll be tedious fo

[PATCH] Fix use-after-free in libps.

2016-02-28 Thread Esa Peuha
+0200 Subject: [PATCH] Fix use-after-free in libps. * libps/fmt.c (_fmt_create): Free new_fmt->src before new_fmt if reallocating fields fails. --- libps/fmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libps/fmt.c b/libps/fmt.c index 580b097..f914212 100644 --- a/lib