From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754763AbbESSNq (ORCPT ); Tue, 19 May 2015 14:13:46 -0400 Received: from mail.skyhub.de ([78.46.96.112]:53920 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752446AbbESSNm (ORCPT ); Tue, 19 May 2015 14:13:42 -0400 Date: Tue, 19 May 2015 20:13:34 +0200 From: Borislav Petkov To: Brian Gerst Cc: Prarit Bhargava , Linux Kernel Mailing List , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , the arch/x86 maintainers , Andy Lutomirski , Denys Vlasenko , Dave Hansen , Igor Mammedov , Fenghua Yu Subject: Re: [PATCH] x86, cpuinfo x86_model_id whitespace cleanup Message-ID: <20150519181334.GM4641@pd.tnic> References: <1432050210-32036-1-git-send-email-prarit@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. --