Re: [PATCH 1/3] BUG/MINOR: namespace: handle a possible strdup() failure

2024-12-09 Thread Willy Tarreau
On Tue, Dec 03, 2024 at 08:20:16PM +0100, ??? wrote: > thank for suggestions. > here's v2 of patchset Looks good, all applied now, thank you Ilya! Willy

Re: [PATCH 1/3] BUG/MINOR: namespace: handle a possible strdup() failure

2024-12-03 Thread Илья Шипицин
he previously created fd will leak, so a close(fd) is missing. > > Thanks! > Willy > From 95bf14da420a7ec7c5097e28b564f6bf33bc3884 Mon Sep 17 00:00:00 2001 From: Ilia Shipitsin Date: Tue, 3 Dec 2024 17:10:21 +0100 Subject: [PATCH 1/3] BUG/MINOR: namespace: handle a possible strdup() fail

Re: [PATCH 1/3] BUG/MINOR: namespace: handle a possible strdup() failure

2024-11-30 Thread Willy Tarreau
Hi Ilya, On Thu, Nov 28, 2024 at 01:07:40AM +0100, Ilya Shipitsin wrote: > This defect was found by the coccinelle script "unchecked-strdup.cocci". > It can be backported to all supported branches. > --- > src/namespace.c | 5 + > 1 file changed, 5 insertions(+) > > diff --git a/src/namespac

[PATCH 1/3] BUG/MINOR: namespace: handle a possible strdup() failure

2024-11-27 Thread Ilya Shipitsin
This defect was found by the coccinelle script "unchecked-strdup.cocci". It can be backported to all supported branches. --- src/namespace.c | 5 + 1 file changed, 5 insertions(+) diff --git a/src/namespace.c b/src/namespace.c index 9cc85a384..12885cd9f 100644 --- a/src/namespace.c +++ b/src/