From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olivier MATZ Subject: Re: [PATCH] string: fix potential seg fault on snprintf Date: Fri, 27 Jun 2014 14:34:27 +0200 Message-ID: <53AD64D3.9000100@6wind.com> References: <1403867097-18848-1-git-send-email-pablox.de.lara.guarch@intel.com> <53AD55BB.8090807@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit To: "De Lara Guarch, Pablo" , "dev-VfR2kkLFssw@public.gmane.org" Return-path: In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" Hi Pablo, On 06/27/2014 02:13 PM, De Lara Guarch, Pablo wrote: > With last Thomas' patch, cmdline unit test does not pass due to this problem (basically it tests this situation). > After test passed, by fixing this issue in several functions, I looked for other places where this happened. Indeed I missed the unit test, thanks. I think that testing the NULL case is not required. To me, it is like testing snprintf(NULL, ...) Regards, Olivier