From patchwork Sat Jun 17 17:21:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 105773 Delivered-To: patch@linaro.org Received: by 10.140.91.2 with SMTP id y2csp172629qgd; Sat, 17 Jun 2017 10:24:37 -0700 (PDT) X-Received: by 10.84.205.70 with SMTP id o6mr20136595plh.32.1497720277875; Sat, 17 Jun 2017 10:24:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497720277; cv=none; d=google.com; s=arc-20160816; b=UYr5AbplzJjT+H02R8O5dHwEzKi6CxHwmG9j2QxeDCUhnQCiB0Dqyfyxi+qiWxnueO 9L3OB0fReGRjrBM4l3VoeUPtIrW+pOtRB9tLapdc12bKpldx9r2HG6PrmDSKjTqiSFC2 DZdrpS2gi33am1p0h3L7J2eViJGGtNdgUNbBuulCDHNK7fUapyAITpuVIwYQyW0jB28C pIEe0Pwdt3rw5jlqwpdor4tay0gQpkezjEt+KT4MjJToEjgw0yg7ZcCrH8dOkvT+45S4 gRVZsYrAufa//d98CYbLdPO3rJwFzla0hkt8IaFrgv6A3HfEKCq+OFpTk+CNIZ/MSYha qFhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=EOCwuVVvSPbE6S8EEPt4s5PAzwL7KN5MvSEzvOPyVzo=; b=IxZxxA3nrn63TFB/NYzq6xJLBVfgAd34mGkZ2pWbjSLkwyBu317tCfMeJCWirRBxdV IOY6gHdp9RCCigV7HrGSq5Shpo6rSJG9AGFQYorlrCCb4AQIgNl9D5GiwMfVnRoWRgmn HWrX6fpd/MGtZ6+c+KA1r1FPmOS0lxm3mN1h86js+7nECVN0Vt5uhXPD+FvQ14bDLaIQ K7LMBRERIgGgY0N0R3aR2Y5u1qNXlqREl7j5wAU0AJBT0JaUFan4gbsGRwUmwfrZO4Vp qBcncAI05nhVQV4lclBpvjJCFIOac3ONC6GhD4RTRTBtr2tcd7/aYLYH1Gny82Xw04XA KZOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.b=hK43TZHJ; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id r13si5240568plj.189.2017.06.17.10.24.37; Sat, 17 Jun 2017 10:24:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.b=hK43TZHJ; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: from review.yoctoproject.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id B1F87783A1; Sat, 17 Jun 2017 17:24:08 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf0-f195.google.com (mail-pf0-f195.google.com [209.85.192.195]) by mail.openembedded.org (Postfix) with ESMTP id 335A878372 for ; Sat, 17 Jun 2017 17:21:59 +0000 (UTC) Received: by mail-pf0-f195.google.com with SMTP id y7so11054443pfd.3 for ; Sat, 17 Jun 2017 10:22:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=I/TEG/28lrzCq+4KDovylwWlQeprOfKgMOUOFM3aPRY=; b=hK43TZHJn/T0Q8kcHen9gCXRe6KRKdYPvHhT6VALDFVzFYzXaMchFjYBtQjufR0rhJ pCavEgmCFGahsqIq4y8EcSQIpDxmrf45AKdi1TcM0/ZkNgnQZrBM4c7qPnPkFsKDgIPM 3biAelM5n8G1C9OHF7c9aDyBHrRkg6fdM6nYkj/jOvz+jNk2wrgQ9EZa2mb0EfEXRc9z 1FGu8ChlgqbAwMPEQZm6lhhRIEx9b1pG7dm6y4EIOrtNbsIOJbH72Wwh/jCnUsv9d0mO IvF+fG1A+1uz0/g0+EHjgQ5fibn6N2dOkUm81hJfgDRG5c/P4EzvzFzKNndwfgHUnBGf ccpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=I/TEG/28lrzCq+4KDovylwWlQeprOfKgMOUOFM3aPRY=; b=BabF+pUldmRO3ld4VzhUD3Xoq1jF2DdQE6eM9dmEC/OAD+dt94slmDExU+vWni84BI P4BshHm0m9uALzi+2Vq4qV59uKWRZyPn7ffhPonXtXrDGMtJOvLkNrvpySVDyqFoJFXI oF0QOJRp8Yoe9+zBRzeGa9+hpFwOmR2dMdW2jl9Xb9Ru5r/kNuzRAEeU9vLBR0bextnu DDWuSIRo8F8ai8+xKmeGUeC3jYf/zl/eVRT8yCom9o3xGa3JogHk87PQuzBpTIdB+KCF qC92amoJ4+DyDcuIHmuCA/VIt73C4i0ZrI6aizC4i/d5KwaLDZWK/noYSJeDP9B979bt M/NA== X-Gm-Message-State: AKS2vOxKkEaQgjm86zQ8NYJ7niFhaKrkCigqpsNMKvO69B6bBR7e/UZo QVL9EpUHl5kQedvd X-Received: by 10.84.254.11 with SMTP id b11mr19803296plm.209.1497720120964; Sat, 17 Jun 2017 10:22:00 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::36d3]) by smtp.gmail.com with ESMTPSA id o12sm12201226pfi.9.2017.06.17.10.21.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 17 Jun 2017 10:21:59 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Sat, 17 Jun 2017 10:21:40 -0700 Message-Id: <20170617172142.1311-7-raj.khem@gmail.com> X-Mailer: git-send-email 2.13.1 In-Reply-To: <20170617172142.1311-1-raj.khem@gmail.com> References: <20170617172142.1311-1-raj.khem@gmail.com> Subject: [oe] [meta-oe][PATCH 7/9] tiobench: Fix build with hardening flags X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- .../0001-Specify-printf-formats.patch | 49 ++++++++++++++++++++++ .../recipes-benchmark/tiobench/tiobench_0.3.3.bb | 1 + 2 files changed, 50 insertions(+) create mode 100644 meta-oe/recipes-benchmark/tiobench/tiobench-0.3.3/0001-Specify-printf-formats.patch -- 2.13.1 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-benchmark/tiobench/tiobench-0.3.3/0001-Specify-printf-formats.patch b/meta-oe/recipes-benchmark/tiobench/tiobench-0.3.3/0001-Specify-printf-formats.patch new file mode 100644 index 000000000..cfd34f02a --- /dev/null +++ b/meta-oe/recipes-benchmark/tiobench/tiobench-0.3.3/0001-Specify-printf-formats.patch @@ -0,0 +1,49 @@ +From b08e61ef64eece23ce8ffa2784cd3c4f70b6169e Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sat, 17 Jun 2017 08:08:56 -0700 +Subject: [PATCH] Specify printf formats + +Fixes +tiotest.c:555:4: error: format not a string literal and no format arguments [-Werror=format-security] + +Upstream-Status: Pending + +Signed-off-by: Khem Raj +--- + tiotest.c | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/tiotest.c b/tiotest.c +index 6b3d0c3..3e6166a 100644 +--- a/tiotest.c ++++ b/tiotest.c +@@ -91,7 +91,7 @@ inline void checkIntZero(int value, char *mess) + { + if (value <= 0) + { +- printf(mess); ++ printf("%s",mess); + printf("Try 'tiotest -h' for more information.\n"); + exit(1); + } +@@ -101,7 +101,7 @@ inline void checkLong(long value, char *mess) + { + if (value < 0) + { +- printf(mess); ++ printf("%s", mess); + printf("Try 'tiotest -h' for more information\n"); + exit(1); + } +@@ -552,7 +552,7 @@ void do_test( ThreadTest *test, int testCase, int sequential, + if(args.debugLevel > 4) + { + printf("Created %d threads\n", i); +- fprintf(stderr, debugMessage); ++ fprintf(stderr, "%s", debugMessage); + fflush(stderr); + } + +-- +2.13.1 + diff --git a/meta-oe/recipes-benchmark/tiobench/tiobench_0.3.3.bb b/meta-oe/recipes-benchmark/tiobench/tiobench_0.3.3.bb index 35af35fd3..427ce67d6 100644 --- a/meta-oe/recipes-benchmark/tiobench/tiobench_0.3.3.bb +++ b/meta-oe/recipes-benchmark/tiobench/tiobench_0.3.3.bb @@ -10,6 +10,7 @@ SRC_URI = "\ file://tiobench-makefile.patch \ file://avoid-glibc-clashes.patch \ file://0001-Drop-inline-of-crc32-function-to-fix-build-using-GCC.patch \ + file://0001-Specify-printf-formats.patch \ " SRC_URI[md5sum] = "bf485bf820e693c79e6bd2a38702a128" SRC_URI[sha256sum] = "8ad011059a35ac70cdb5e3d3999ceee44a8e8e9078926844b0685b7ea9db2bcc"