From: Khem Raj <raj.khem@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: [meta-networking][PATCH 4/9] vlan: Fix build with security flags turned on
Date: Sat, 17 Jun 2017 10:21:37 -0700 [thread overview]
Message-ID: <20170617172142.1311-4-raj.khem@gmail.com> (raw)
In-Reply-To: <20170617172142.1311-1-raj.khem@gmail.com>
Limit the license checksum to the file header
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
...format-and-silence-format-security-warnin.patch | 34 ++++++++++++++++++++++
.../recipes-connectivity/vlan/vlan_1.9.bb | 6 ++--
2 files changed, 38 insertions(+), 2 deletions(-)
create mode 100644 meta-networking/recipes-connectivity/vlan/vlan-1.9/0001-Add-printf-format-and-silence-format-security-warnin.patch
diff --git a/meta-networking/recipes-connectivity/vlan/vlan-1.9/0001-Add-printf-format-and-silence-format-security-warnin.patch b/meta-networking/recipes-connectivity/vlan/vlan-1.9/0001-Add-printf-format-and-silence-format-security-warnin.patch
new file mode 100644
index 000000000..ebcfc7c2f
--- /dev/null
+++ b/meta-networking/recipes-connectivity/vlan/vlan-1.9/0001-Add-printf-format-and-silence-format-security-warnin.patch
@@ -0,0 +1,34 @@
+From 400b8f235377f677a7a760f1e3a1cd26d95140bc Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Fri, 16 Jun 2017 22:58:18 -0700
+Subject: [PATCH] Add printf format and silence format-security warnings
+
+Fix
+
+vconfig.c:66:4: error: format not a string literal and no format arguments [-Werror=format-security]
+ fprintf(stdout,usage);
+ ^~~~~~~
+
+Upstream-Status: Pending
+
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+---
+ vconfig.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/vconfig.c b/vconfig.c
+index 5057cfd..83137ba 100644
+--- a/vconfig.c
++++ b/vconfig.c
+@@ -63,7 +63,7 @@ static char* usage =
+ " is OFF.\n";
+
+ void show_usage() {
+- fprintf(stdout,usage);
++ fprintf(stdout, "%s", usage);
+ }
+
+ int hex_to_bytes(char* bytes, int bytes_length, char* hex_str) {
+--
+2.13.1
+
diff --git a/meta-networking/recipes-connectivity/vlan/vlan_1.9.bb b/meta-networking/recipes-connectivity/vlan/vlan_1.9.bb
index 09c4007ef..3f688b360 100644
--- a/meta-networking/recipes-connectivity/vlan/vlan_1.9.bb
+++ b/meta-networking/recipes-connectivity/vlan/vlan_1.9.bb
@@ -1,10 +1,12 @@
SUMMARY = "VLAN provides vconfig utility"
SECTION = "misc"
LICENSE = "GPLv2"
-LIC_FILES_CHKSUM = "file://vconfig.c;md5=293ef69c4e88434d37a5ee577a5288cb"
+LIC_FILES_CHKSUM = "file://vconfig.c;beginline=1;endline=19;md5=094ca47de36c20c598b15b32c270ce0a"
SRC_URI = "http://${BPN}.sourcearchive.com/downloads/${PV}-3ubuntu9/${BPN}_${PV}.orig.tar.gz \
- file://no-HOME-includes.patch"
+ file://no-HOME-includes.patch \
+ file://0001-Add-printf-format-and-silence-format-security-warnin.patch \
+"
SRC_URI[md5sum] = "5f0c6060b33956fb16e11a15467dd394"
SRC_URI[sha256sum] = "3b8f0a1bf0d3642764e5f646e1f3bbc8b1eeec474a77392d9aeb4868842b4cca"
--
2.13.1
next prev parent reply other threads:[~2017-06-17 17:21 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-17 17:21 [meta-filesystems][PATCH 1/9] xfsprogs: Remove .la files in ${libdir} Khem Raj
2017-06-17 17:21 ` [meta-networking][PATCH 2/9] freeradius: Upgrade to 3.0.14 Khem Raj
2017-06-17 17:21 ` [meta-oe][PATCH 3/9] ssiapi: Fix build with gcc7 and musl Khem Raj
2017-06-17 17:21 ` Khem Raj [this message]
2017-06-17 17:21 ` [meta-networking][PATCH 5/9] relayd: Upgrade to latest Khem Raj
2017-06-17 17:21 ` [meta-oe][PATCH 6/9] openocd: Fix build with gcc7 Khem Raj
2017-06-17 17:21 ` [meta-oe][PATCH 7/9] tiobench: Fix build with hardening flags Khem Raj
2017-06-17 17:21 ` [meta-networking][PATCH 8/9] relayd: Fix build with hardening flags and glibc Khem Raj
2017-06-17 17:21 ` [meta-networking][PATCH 9/9] ruli: Fix build with hardening flags Khem Raj
2017-06-19 17:36 ` [meta-filesystems][PATCH 1/9] xfsprogs: Remove .la files in ${libdir} Martin Jansa
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=20170617172142.1311-4-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