From patchwork Wed Dec 24 21:44:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 42626 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f71.google.com (mail-ee0-f71.google.com [74.125.83.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6870926C9C for ; Wed, 24 Dec 2014 21:44:34 +0000 (UTC) Received: by mail-ee0-f71.google.com with SMTP id c13sf5398671eek.2 for ; Wed, 24 Dec 2014 13:44:33 -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: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=wFxttAg5v6A947hQIdzXAdsHdYTEnyEtl8Ga19h1LqM=; b=lI9TKphXPKKuCiIm4qRQYI/eW6Vha98QtKwqoea21wi01zOTRkhbUgZ0BOeLL9xPSI dUxUC5djp/214h5WVyy1YRF5hJ/tV2GtD06lv4scrPx0FW/mqjrlYva+WozIsHWKc3gI b/ygYRwmNfB291fodZiKvtndTQhT+nzmQJLJkaBwDwbXZpLOrBQ4spk2Bj/RK4lXiymU SMnP974Ncvn2gmHkNRoco83p/z7/3BoFz13TYIf7MHLtchebLdC16ZmuS2vo5dyhQYg8 YFEBk5cRqPpa0Dv9dUMaMOMPHiuhElFeGtg2tloBjnRVrNb8ZiOr8Eb/SfKW2tnPx5IP AHGA== X-Gm-Message-State: ALoCoQmZiJv/+DPgvhQayNdAlDPBrDPXTCVvERyg3dbWtJf1PyoZB4dX9SO4HXPVq5hPLKNCflD0 X-Received: by 10.112.72.228 with SMTP id g4mr2429137lbv.4.1419457473189; Wed, 24 Dec 2014 13:44:33 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.20.132 with SMTP id n4ls1331859lae.57.gmail; Wed, 24 Dec 2014 13:44:32 -0800 (PST) X-Received: by 10.152.219.3 with SMTP id pk3mr35999161lac.19.1419457472852; Wed, 24 Dec 2014 13:44:32 -0800 (PST) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com. [209.85.217.182]) by mx.google.com with ESMTPS id qc7si21123415lbb.112.2014.12.24.13.44.32 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 24 Dec 2014 13:44:32 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.182 as permitted sender) client-ip=209.85.217.182; Received: by mail-lb0-f182.google.com with SMTP id f15so7961189lbj.27 for ; Wed, 24 Dec 2014 13:44:32 -0800 (PST) X-Received: by 10.152.18.135 with SMTP id w7mr22311672lad.47.1419457472336; Wed, 24 Dec 2014 13:44:32 -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.142.69 with SMTP id ru5csp1732949lbb; Wed, 24 Dec 2014 13:44:31 -0800 (PST) X-Received: by 10.229.126.129 with SMTP id c1mr57835444qcs.12.1419457470677; Wed, 24 Dec 2014 13:44:30 -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 q8si27803073qab.46.2014.12.24.13.44.29 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 24 Dec 2014 13:44:30 -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 1Y3tjH-0005JV-4K; Wed, 24 Dec 2014 21:44:27 +0000 Received: from mail-qc0-f171.google.com ([209.85.216.171]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Y3tj9-0005Bt-Vo for lng-odp@lists.linaro.org; Wed, 24 Dec 2014 21:44:19 +0000 Received: by mail-qc0-f171.google.com with SMTP id r5so6197060qcx.16 for ; Wed, 24 Dec 2014 13:44:14 -0800 (PST) X-Received: by 10.140.101.163 with SMTP id u32mr26884892qge.71.1419457454769; Wed, 24 Dec 2014 13:44:14 -0800 (PST) Received: from mike-desktop.?.holmesfamily.ws ([98.221.136.245]) by mx.google.com with ESMTPSA id j91sm22222606qgd.8.2014.12.24.13.44.13 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 24 Dec 2014 13:44:14 -0800 (PST) From: Mike Holmes To: lng-odp@lists.linaro.org Date: Wed, 24 Dec 2014 16:44:07 -0500 Message-Id: <1419457447-11360-1-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 2.1.0 X-Topics: patch Subject: [lng-odp] [PATCH] validation: system: copy model with snprintf 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.217.182 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 CID 85015: Copy into fixed size buffer (STRING_OVERFLOW) Signed-off-by: Mike Holmes Reviewed-by: Anders Roxell --- test/validation/odp_system.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/validation/odp_system.c b/test/validation/odp_system.c index 2afd4a7..b5742c4 100644 --- a/test/validation/odp_system.c +++ b/test/validation/odp_system.c @@ -28,7 +28,7 @@ static void test_odp_sys_cpu_model_str(void) { char model[128]; - strcpy(model, odp_sys_cpu_model_str()); + snprintf(model, 128, "%s", odp_sys_cpu_model_str()); CU_ASSERT(strlen(model) > 0); CU_ASSERT(strlen(model) < 127); }