From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tony Lindgren Subject: Re: [PATCH v3] mach-omap2: fixing wrong strcat for Non-NULL terminated string Date: Tue, 27 Dec 2016 09:40:18 -0800 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-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1481170230-2120-1-git-send-email-maninder1.s@samsung.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Maninder Singh Cc: Vaneet Narang , paul@pwsan.com, linux@armlinux.org.uk, linux-kernel@vger.kernel.org, ajeet.y@samsung.com, bcousson@baylibre.com, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, pankaj.m@samsung.com List-Id: linux-omap@vger.kernel.org * 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