* David Miller ([email protected]) wrote:
> 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.

OK, that's good to know, thanks!

Mathieu

-- 
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com

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

Reply via email to