* David Miller (da...@davemloft.net) wrote:
> From: Tetsuo Handa <penguin-ker...@i-love.sakura.ne.jp>
> 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
stable@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/stable

Reply via email to