lkml.org 
[lkml]   [2015]   [May]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] x86, cpuinfo x86_model_id whitespace cleanup
On May 19, 2015 11:13 AM, "Borislav Petkov" <bp@alien8.de> wrote:
>
> On Tue, May 19, 2015 at 01:25:59PM -0400, Brian Gerst wrote:
> > Using strlcpy in this manner could fail if it does larger than byte
> > copies and they overlap.
>
> Why?
>
> AFAICT, strlcpy() calls memcpy() and memcpy should handle overlapping
> buffers just fine.

Are you thinking of memmove?

--Andy


\
 
 \ /
  Last update: 2015-05-19 21:21    [W:0.051 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site