[dpdk-dev] [PATCH] string: fix potential seg fault on snprintf

Olivier MATZ olivier.matz at 6wind.com
Fri Jun 27 14:34:27 CEST 2014


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


More information about the dev mailing list