Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933366AbcL0Rkb (ORCPT ); Tue, 27 Dec 2016 12:40:31 -0500 Received: from muru.com ([72.249.23.125]:53654 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933075AbcL0Rk0 (ORCPT ); Tue, 27 Dec 2016 12:40:26 -0500 Date: Tue, 27 Dec 2016 09:40:18 -0800 From: Tony Lindgren To: Maninder Singh Cc: bcousson@baylibre.com, paul@pwsan.com, linux@armlinux.org.uk, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, pankaj.m@samsung.com, ajeet.y@samsung.com, Vaneet Narang Subject: Re: [PATCH v3] mach-omap2: fixing wrong strcat for Non-NULL terminated string Message-ID: <20161227174018.GT4920@atomide.com> References: <1481170230-2120-1-git-send-email-maninder1.s@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1481170230-2120-1-git-send-email-maninder1.s@samsung.com> User-Agent: Mutt/1.7.1 (2016-10-04) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 336 Lines: 10 * Maninder Singh [161207 20:16]: > Issue caught with static analysis tool: > "Dangerous usage of 'name' (strncpy doesn't always 0-terminate it)" > > Use strlcpy _includes_ the NUL terminator, and strlcat() which ensures > that it won't overflow the buffer. Applying into omap-for-v4.10/fixes thanks. Tony