From patchwork Mon Feb 16 20:08:28 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 44736 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D278A21544 for ; Mon, 16 Feb 2015 20:09:14 +0000 (UTC) Received: by labgm9 with SMTP id gm9sf20995737lab.2 for ; Mon, 16 Feb 2015 12:09:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:subject:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=V/AaeMx8pXGjSawSTruPBIurPtnOXGJQpgZhcNnXG0g=; b=PRjXRAkU4Zzf1Npojuk/fDQEgbhRffCo1ddB8/i/HVSeVsXMwbvVl5NmuagtdH/ycq ZlnO9cuTC4zMu9f3gnSszEpDfWG4fwTubfa5Sr5TmkTsKJOnZmSl9BqxeciBH+sO6vo9 +7qAsAv/EkLceI6cnc8XBMXVNVpNcwqF83pLmQB9ECnXxF1L4Y62zyNPPKnzFRr6cAKJ 1rCv0ogzqVKIqPd5cvOVrXe03oVXc4A72ww/GOKECdHrj+/oYaSBhtmbVjEPkhEJSadl tgbPc/QqnxuAYi4fbXrPm7kA7wl3g8Ug5t3n5K93V+cyBCRecvsbYM/jIE6OTV/Lx2cS k+2g== X-Gm-Message-State: ALoCoQnAcvaciTvRmdoJW3Q1fXQxpgdNtWDt7hLq24DO+blj4lb697gwUgOgB77tM+vof9SNqZv9 X-Received: by 10.152.4.229 with SMTP id n5mr78166lan.1.1424117353767; Mon, 16 Feb 2015 12:09:13 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.204.12 with SMTP id ku12ls399877lac.105.gmail; Mon, 16 Feb 2015 12:09:13 -0800 (PST) X-Received: by 10.112.198.161 with SMTP id jd1mr24872959lbc.93.1424117353621; Mon, 16 Feb 2015 12:09:13 -0800 (PST) Received: from mail-la0-f43.google.com (mail-la0-f43.google.com. [209.85.215.43]) by mx.google.com with ESMTPS id rg7si10836673lbb.57.2015.02.16.12.09.13 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Feb 2015 12:09:13 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.43 as permitted sender) client-ip=209.85.215.43; Received: by labgm9 with SMTP id gm9so31989271lab.2 for ; Mon, 16 Feb 2015 12:09:13 -0800 (PST) X-Received: by 10.152.116.18 with SMTP id js18mr24563822lab.106.1424117353440; Mon, 16 Feb 2015 12:09:13 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.35.133 with SMTP id h5csp1793802lbj; Mon, 16 Feb 2015 12:09:12 -0800 (PST) X-Received: by 10.229.192.5 with SMTP id do5mr842660qcb.12.1424117352026; Mon, 16 Feb 2015 12:09:12 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id u127si4464034qhd.17.2015.02.16.12.09.09 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 16 Feb 2015 12:09:12 -0800 (PST) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YNRyd-000134-0Y; Mon, 16 Feb 2015 20:09:07 +0000 Received: from mail-qa0-f41.google.com ([209.85.216.41]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YNRyX-00012z-9o for lng-odp@lists.linaro.org; Mon, 16 Feb 2015 20:09:01 +0000 Received: by mail-qa0-f41.google.com with SMTP id x12so23577919qac.0 for ; Mon, 16 Feb 2015 12:08:56 -0800 (PST) X-Received: by 10.229.70.201 with SMTP id e9mr1593427qcj.6.1424117336117; Mon, 16 Feb 2015 12:08:56 -0800 (PST) Received: from mike-desktop.?.holmesfamily.ws (c-98-221-136-245.hsd1.nj.comcast.net. [98.221.136.245]) by mx.google.com with ESMTPSA id 11sm4377470qhh.7.2015.02.16.12.08.55 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 16 Feb 2015 12:08:55 -0800 (PST) From: Mike Holmes To: lng-odp@lists.linaro.org Date: Mon, 16 Feb 2015 15:08:28 -0500 Message-Id: <1424117308-2902-1-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: References: X-Topics: patch Subject: [lng-odp] [PATCH v2] validation: init: fix unitalized data in struct X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: lng-odp-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: mike.holmes@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.43 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 struct odp_init_t init_data was not fully initalized. Fixes https://bugs.linaro.org/show_bug.cgi?id=1206 Signed-off-by: Mike Holmes --- v2 Use memset to cover the expansion of the struct in future test/validation/odp_init_log.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/validation/odp_init_log.c b/test/validation/odp_init_log.c index 372d4f5..c072147 100644 --- a/test/validation/odp_init_log.c +++ b/test/validation/odp_init_log.c @@ -17,6 +17,7 @@ static void test_odp_init_global_replace_log(void) int status; struct odp_init_t init_data; + memset(&init_data, 0, sizeof(init_data)); init_data.log_fn = &odp_init_log; replacement_logging_used = 0;