From patchwork Mon Jun 26 05:34:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 106303 Delivered-To: patch@linaro.org Received: by 10.140.101.48 with SMTP id t45csp65216qge; Sun, 25 Jun 2017 22:36:08 -0700 (PDT) X-Received: by 10.99.165.82 with SMTP id r18mr14980264pgu.65.1498455368340; Sun, 25 Jun 2017 22:36:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498455368; cv=none; d=google.com; s=arc-20160816; b=FDlyeNGtzmNmnCf2HQXbMtSqkFMa2DBYp2A3IppGB9IGnr5iyJO7uR+k68X0SMBU0z to47/VB6qbKhcgk1hUOTz9bDCupd1NxaMN4DZChk/DdXw279SpF8M6lSJ/kK6OsYFL83 SoGs0wOrvRX3ZoxypWZgKkYpMm9j+1GNlQtsDR99tLRQJTD6XZPSltZcfzo1vV2f0nDP yk3w9smWt8JznAXiNyGWttz0SFetsSxzWTMN7u001ygafFmhKvvjbTEDnyz4RJuxFzvz m6h4q4B+nHwH9pKx7Kzt6yLGuMbUKZuvnTgQzQVrl5LL84NVDaNU+hfReTVjLb6HP98R SkZw== 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=LACzQwl02i1VLUrE7hrIOzgXSS1/bHH9twjUvKkDc00=; b=xUes9U4a7OuS6DovOoBk7OLX+zH40H7SV/QkkRr4lY+3yTGi9lBD3Yz0WMDF7IUpTM zs5GqdazKWmHik5AMR7vBRo+vZ7wlBZjy5MCsxHWyczf0I7V2FybHHZFCGhPwUBvNkjv PGd37uNEoC5+j5OE+07HHv+hQc1oC7aDU6/vB3QX01qKZd2kocQzDi7Rduc4aqEDkEm+ y/COLH5UtbHq9uqdQ44JT7SR5+iMKiIxYUtq0hFK7q+Ht+8NO/ai8nVHsP6zlC+/WDf4 4dmdYX6+RoMDqrywUCtwtHUnJ2iPUt7e8rUHyYV8fW0wEdBLriW+MrCxsgCR/ntVb3Us q3JQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.b=PtlRx72G; 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 f23si9134179plk.160.2017.06.25.22.36.08; Sun, 25 Jun 2017 22:36:08 -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=PtlRx72G; 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 AB3F477BD1; Mon, 26 Jun 2017 05:35:59 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf0-f179.google.com (mail-pf0-f179.google.com [209.85.192.179]) by mail.openembedded.org (Postfix) with ESMTP id 77EE17780E for ; Mon, 26 Jun 2017 05:35:01 +0000 (UTC) Received: by mail-pf0-f179.google.com with SMTP id c73so49939628pfk.2 for ; Sun, 25 Jun 2017 22:35:03 -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=NFdSKz6SlbmUPkkoYPmu1cSH531FngUWiCXXSJ7P53o=; b=PtlRx72GIR6/uc+D5SFSnetv/kXUkULnoq/aZ+IUyhupqtH9XDHBMvaCoP6nMuUZIn QDFZi/t5ZQvGg3vwu+gLEtBZ3xcTXYP8hJIM25RfwOU67Ry4iPo+SPexcsKpittgE79/ chflJNOi8+rLQ3ZbMEQrcrJ0rHOUUXBxpsfhtmuFMuOLNMUvhooBi5UwkoZNG4Ba9lW/ colupuzle1LH2VW8uKfIYljsNJc66HkbdCy7uYKYWZUMlcx/z0JnePea92kwskv6TGkK nzywRLdmNPMITvBMVN2lq3SVC9dvsUedaSh/cE5YBWHLLykMNWTnJn7tQxPOL7V0sydK tBDw== 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=NFdSKz6SlbmUPkkoYPmu1cSH531FngUWiCXXSJ7P53o=; b=beD3F20sXaMMOWrSpY0zhI/QC9fd2EqJoQnRlC85pK60ECAxsIlUAH3ag00mTFLEOi Z/LXGjByXhmv+ckgTMdH1eNd/bA5cWMFBaQ9gT/Amt86+R2YbvTYLA/+Hcv5rEeqhR3V HXpWehH8IdNwhTmqN9N57WNoM8ULrZX84+Nb74sqt3Cjyqdsy22SN2K+HoXEdJ3123BO 8EkhYl17IDprMPdW2xYkd8986qvZsbjhYCuQVXKU/R7Ay9zQuKpacamwXaJaWAaJ9vSN wdUuPTfyIJjEQA3wdbH44qLP7umYoZjMAsIpI5IbVYhp/4mvR+7dkmuRsTBWSgIUDW99 Os6w== X-Gm-Message-State: AKS2vOwiI3yG/IFTQ98mFqRSrU1CK6vtQ4qVSB5hKsx+MsjXRSgTdIwq v6L2elbO6mAdSW3R X-Received: by 10.98.50.196 with SMTP id y187mr19747185pfy.67.1498455301761; Sun, 25 Jun 2017 22:35:01 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::3df3]) by smtp.gmail.com with ESMTPSA id x64sm23932432pfk.20.2017.06.25.22.35.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 25 Jun 2017 22:35:00 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Sun, 25 Jun 2017 22:34:42 -0700 Message-Id: <20170626053446.37959-3-raj.khem@gmail.com> X-Mailer: git-send-email 2.13.1 In-Reply-To: <20170626053446.37959-1-raj.khem@gmail.com> References: <20170626053446.37959-1-raj.khem@gmail.com> Subject: [oe] [meta-networking][PATCH 3/7] ruli: 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 --- ...src-ruli_addr.c-Add-missing-format-string.patch | 35 ++++++++++++++++++++++ meta-networking/recipes-support/ruli/ruli_0.36.bb | 1 + 2 files changed, 36 insertions(+) create mode 100644 meta-networking/recipes-support/ruli/files/0001-src-ruli_addr.c-Add-missing-format-string.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-networking/recipes-support/ruli/files/0001-src-ruli_addr.c-Add-missing-format-string.patch b/meta-networking/recipes-support/ruli/files/0001-src-ruli_addr.c-Add-missing-format-string.patch new file mode 100644 index 000000000..9044415ff --- /dev/null +++ b/meta-networking/recipes-support/ruli/files/0001-src-ruli_addr.c-Add-missing-format-string.patch @@ -0,0 +1,35 @@ +From d3fb471f53712e710fb5777b1b0851c46b7be64c Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sun, 25 Jun 2017 01:23:03 -0700 +Subject: [PATCH] src/ruli_addr.c: Add missing format string + +fixes + +| ruli_addr.c: In function 'ruli_in_snprint': +| ruli_addr.c:491:5: error: format not a string literal and no format arguments [-Werror=format-security] +| return snprintf(buf, size, inet_ntoa(addr->ipv4)); +| ^~~~~~ + +Signed-off-by: Khem Raj +--- +Upstream-Status: Pending + + src/ruli_addr.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/ruli_addr.c b/src/ruli_addr.c +index f1eabae..5f1fd4f 100644 +--- a/src/ruli_addr.c ++++ b/src/ruli_addr.c +@@ -488,7 +488,7 @@ int ruli_in_snprint(char *buf, size_t size, const _ruli_addr *addr, int family) + { + switch (family) { + case PF_INET: +- return snprintf(buf, size, inet_ntoa(addr->ipv4)); ++ return snprintf(buf, size, "%s", inet_ntoa(addr->ipv4)); + + case PF_INET6: + return ruli_inet6_snprint(buf, size, &addr->ipv6); +-- +2.13.1 + diff --git a/meta-networking/recipes-support/ruli/ruli_0.36.bb b/meta-networking/recipes-support/ruli/ruli_0.36.bb index b41313090..885796d2a 100644 --- a/meta-networking/recipes-support/ruli/ruli_0.36.bb +++ b/meta-networking/recipes-support/ruli/ruli_0.36.bb @@ -10,6 +10,7 @@ DEPENDS = "liboop" SRC_URI = "http://download.savannah.gnu.org/releases/ruli/ruli_${PV}.orig.tar.gz \ file://Makefile.patch \ file://0001-Fix-build-with-format-string-checks.patch \ + file://0001-src-ruli_addr.c-Add-missing-format-string.patch \ " SRC_URI[md5sum] = "e73fbfdeadddb68a703a70cea5271468"