From: Tetsuo Handa <[email protected]>
Date: Thu, 25 Aug 2011 13:04:44 +0900

> Mathieu Desnoyers wrote:
>> Is it that both memcpy and memcmp ensure that NULL pointers are never a
>> problem when the length is 0 ?
> 
> As far as I know, memcpy(ptr, NULL, 0) and memcmp(ptr, NULL, 0) are safe.

Yes, they should be.

_______________________________________________
stable mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/stable

Reply via email to