Re: [PATCH] x86, cpuinfo x86_model_id whitespace cleanup

From: Borislav Petkov
Date: Tue May 19 2015 - 14:13:49 EST


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.

--
Regards/Gruss,
Boris.

ECO tip #101: Trim your mails when you reply.
--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/