Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: Khem Raj <raj.khem@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: [meta-networking][PATCH 05/17] ipsec-tools: Fix build with gcc7
Date: Sun, 23 Apr 2017 22:20:46 -0700	[thread overview]
Message-ID: <20170424052058.4952-5-raj.khem@gmail.com> (raw)
In-Reply-To: <20170424052058.4952-1-raj.khem@gmail.com>

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 ...parse-clear-memory-equal-to-size-of-array.patch | 30 ++++++++++++++++++++++
 .../ipsec-tools/ipsec-tools_0.8.2.bb               |  1 +
 2 files changed, 31 insertions(+)
 create mode 100644 meta-networking/recipes-support/ipsec-tools/ipsec-tools/0002-cfparse-clear-memory-equal-to-size-of-array.patch

diff --git a/meta-networking/recipes-support/ipsec-tools/ipsec-tools/0002-cfparse-clear-memory-equal-to-size-of-array.patch b/meta-networking/recipes-support/ipsec-tools/ipsec-tools/0002-cfparse-clear-memory-equal-to-size-of-array.patch
new file mode 100644
index 000000000..e9dd84aaa
--- /dev/null
+++ b/meta-networking/recipes-support/ipsec-tools/ipsec-tools/0002-cfparse-clear-memory-equal-to-size-of-array.patch
@@ -0,0 +1,30 @@
+From a5c59f6a1479947d33dba5191724cc5fc88a614b Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Sat, 22 Apr 2017 10:39:57 -0700
+Subject: [PATCH 2/2] cfparse: clear memory equal to size of array
+
+Fixes compiler error
+cfparse.y: In function 'set_isakmp_proposal':
+cfparse.y:2567:3: error: 'memset' used with length equal to number of elements without multiplication by element size [-Werror=memset-elt-size]
+
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+---
+ src/racoon/cfparse.y | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/racoon/cfparse.y b/src/racoon/cfparse.y
+index 0d9bd67..5d9c67b 100644
+--- a/src/racoon/cfparse.y
++++ b/src/racoon/cfparse.y
+@@ -2564,7 +2564,7 @@ set_isakmp_proposal(rmconf)
+ 		plog(LLV_DEBUG2, LOCATION, NULL,
+ 			"encklen=%d\n", s->encklen);
+ 
+-		memset(types, 0, ARRAYLEN(types));
++		memset(types, 0, sizeof(types));
+ 		types[algclass_isakmp_enc] = s->algclass[algclass_isakmp_enc];
+ 		types[algclass_isakmp_hash] = s->algclass[algclass_isakmp_hash];
+ 		types[algclass_isakmp_dh] = s->algclass[algclass_isakmp_dh];
+-- 
+2.12.2
+
diff --git a/meta-networking/recipes-support/ipsec-tools/ipsec-tools_0.8.2.bb b/meta-networking/recipes-support/ipsec-tools/ipsec-tools_0.8.2.bb
index 8f98b6c5c..d7e8b2596 100644
--- a/meta-networking/recipes-support/ipsec-tools/ipsec-tools_0.8.2.bb
+++ b/meta-networking/recipes-support/ipsec-tools/ipsec-tools_0.8.2.bb
@@ -23,6 +23,7 @@ SRC_URI = "http://ftp.netbsd.org/pub/NetBSD/misc/ipsec-tools/0.8/ipsec-tools-${P
            file://fix-CVE-2015-4047.patch \
            file://0001-Fix-build-with-clang.patch \
            file://0001-Fix-header-issues-found-with-musl-libc.patch \
+           file://0002-cfparse-clear-memory-equal-to-size-of-array.patch \
            "
 SRC_URI[md5sum] = "d53ec14a0a3ece64e09e5e34b3350b41"
 SRC_URI[sha256sum] = "8eb6b38716e2f3a8a72f1f549c9444c2bc28d52c9536792690564c74fe722f2d"
-- 
2.12.2



  parent reply	other threads:[~2017-04-24  5:21 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-24  5:20 [meta-multimedia][PATCH 01/17] musicbrainz: Upgrade to 5.1.0 Khem Raj
2017-04-24  5:20 ` [meta-oe][PATCH 02/17] ltrace: Fix FTBFS due to invalid code in ARM support Khem Raj
2017-04-24  5:20 ` [meta-oe][PATCH 03/17] msgpack-c: Upgrade to 2.1.1 Khem Raj
2017-04-24  5:20 ` [meta-oe][PATCH 04/17] fluentbit: Upgrade to 0.11.3 release Khem Raj
2017-04-24  5:20 ` Khem Raj [this message]
2017-04-24  5:20 ` [meta-oe][PATCH 06/17] collectd: Upgrade to 5.7.1 Khem Raj
2017-04-24  5:20 ` [meta-oe][PATCH 07/17] libsigc++: Disable PIE in SECURITY_FLAGS Khem Raj
2017-04-24  5:20 ` [meta-oe][PATCH 08/17] glibmm: Upgrade to 2.50.1 Khem Raj
2017-04-24  5:20 ` [meta-networking][PATCH 09/17] opensaf: Upgrade to 5.2.0 Khem Raj
2017-04-25 12:12   ` Martin Jansa
2017-04-24  5:20 ` [meta-networking][PATCH 10/17] memcached: Upgrade to 1.4.36 Khem Raj
2017-04-24  5:20 ` [meta-networking][PATCH 11/17] lowpan-tools: Fix build with gcc7 Khem Raj
2017-04-24  5:20 ` [meta-networking][PATCH 12/17] squid: Upgrade to 3.5.25 Khem Raj
2017-04-24  5:20 ` [meta-oe][PATCH 13/17] glcompbench: Fix build with gcc7 Khem Raj
2017-04-24  5:20 ` [meta-oe][PATCH 14/17] mariadb: Upgrade to 5.5.55 Khem Raj
2017-04-24  5:20 ` [meta-oe][PATCH 15/17] efivar: Fix multiple definition of `efi_set_variable' Khem Raj
2017-04-24  5:20 ` [meta-networking][PATCH 16/17] libtalloc: Upgrade to 2.1.9 Khem Raj
2017-04-24  5:20 ` [meta-networking][PATCH 17/17] samba: Upgrade to 4.6.2 Khem Raj
2017-04-25 12:11 ` [meta-multimedia][PATCH 01/17] musicbrainz: Upgrade to 5.1.0 Martin Jansa
2017-04-25 13:32   ` Khem Raj
2017-04-25 14:13     ` Martin Jansa
2017-04-25 14:44       ` Khem Raj

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170424052058.4952-5-raj.khem@gmail.com \
    --to=raj.khem@gmail.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox