Wei Liu writes ("Re: [PATCH] tools: libxl: NULL terminate partially constructed
hex string"):
> On Tue, Feb 16, 2016 at 11:18:20AM +, Ian Campbell wrote:
> > Coverity (correctly) complains that the strncpy(p, "0x", 2) will not
> > null terminate p.
> > Signed-off-by: Ian Campbell
>
> Acked-b
On Tue, Feb 16, 2016 at 11:18:20AM +, Ian Campbell wrote:
> Coverity (correctly) complains that the strncpy(p, "0x", 2) will not
> null terminate p.
>
> Although we can see that in the rest of the function p will
> definitely be NULL terminated by the time it is complete there is no
> harm in
Coverity (correctly) complains that the strncpy(p, "0x", 2) will not
null terminate p.
Although we can see that in the rest of the function p will
definitely be NULL terminated by the time it is complete there is no
harm in passing 3 to the strncpy and allowing it to NULL terminate to
placate Cove