From patchwork Thu Nov 6 13:03:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfgang Denk X-Patchwork-Id: 407449 X-Patchwork-Delegate: iwamatsu@nigauri.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 16F0014008C for ; Fri, 7 Nov 2014 00:04:29 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 32EB94BFF9; Thu, 6 Nov 2014 14:04:01 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id b2Xk+ZchoSxq; Thu, 6 Nov 2014 14:04:01 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 096E9A7417; Thu, 6 Nov 2014 14:03:55 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id DF7ED4BD37 for ; Thu, 6 Nov 2014 14:03:48 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3xSo36BZ2ZFf for ; Thu, 6 Nov 2014 14:03:48 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) by theia.denx.de (Postfix) with ESMTPS id 46C5F4BFF2 for ; Thu, 6 Nov 2014 14:03:48 +0100 (CET) Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3jYQ0M38FWz3hk7G; Thu, 6 Nov 2014 14:03:47 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3jYQ0M2g0xzvPt1; Thu, 6 Nov 2014 14:03:47 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.184]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id HkNiaDNSHZdT; Thu, 6 Nov 2014 14:03:36 +0100 (CET) X-Auth-Info: brPmhB+YgHQXoS/CJlgFoS/3/umqL3oL+GHQOsZiujE= Received: from diddl.denx.de (host-80-81-18-216.customer.m-online.net [80.81.18.216]) by smtp-auth.mnet-online.de (Postfix) with ESMTPA; Thu, 6 Nov 2014 14:03:26 +0100 (CET) Received: from gemini.denx.de (gemini.denx.de [10.0.0.2]) by diddl.denx.de (Postfix) with ESMTP id A4B321AAC38; Thu, 6 Nov 2014 14:03:10 +0100 (CET) Received: by gemini.denx.de (Postfix, from userid 500) id 97489382347; Thu, 6 Nov 2014 14:03:10 +0100 (MET) From: Wolfgang Denk To: u-boot@lists.denx.de Date: Thu, 6 Nov 2014 14:03:03 +0100 Message-Id: <1415278985-8482-8-git-send-email-wd@denx.de> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1415278985-8482-1-git-send-email-wd@denx.de> References: <1415278985-8482-1-git-send-email-wd@denx.de> Cc: Nobuhiro Iwamatsu , Roger Meier Subject: [U-Boot] [PATCH 7/9] board/renesas/ecovec/ecovec.c: fix buffer overflow X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.13 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Fix error detected by cppcheck: [board/renesas/ecovec/ecovec.c:66]: (error) Buffer is accessed out of bounds. Signed-off-by: Wolfgang Denk Cc: Nobuhiro Iwamatsu --- board/renesas/ecovec/ecovec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/renesas/ecovec/ecovec.c b/board/renesas/ecovec/ecovec.c index 2804d91..d862d99 100644 --- a/board/renesas/ecovec/ecovec.c +++ b/board/renesas/ecovec/ecovec.c @@ -41,7 +41,7 @@ static void debug_led(u8 led) int board_late_init(void) { u8 mac[6]; - char env_mac[17]; + char env_mac[18]; udelay(1000);