From 6bdb814f247b826dc2eebc13517831a05e0e5e71 Mon Sep 17 00:00:00 2001 From: André Draszik Date: Mon, 19 Jun 2017 11:28:17 +0100 Subject: m4: fix security & musl issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As per the patches. Signed-off-by: André Draszik Acked-by: Sylvain Lemieux Signed-off-by: Ross Burton --- ...compilation-error-with-security-flags-ena.patch | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 recipes-devtools/m4/m4/0001-freeze-fix-compilation-error-with-security-flags-ena.patch (limited to 'recipes-devtools/m4/m4/0001-freeze-fix-compilation-error-with-security-flags-ena.patch') diff --git a/recipes-devtools/m4/m4/0001-freeze-fix-compilation-error-with-security-flags-ena.patch b/recipes-devtools/m4/m4/0001-freeze-fix-compilation-error-with-security-flags-ena.patch new file mode 100644 index 0000000..b5a6413 --- /dev/null +++ b/recipes-devtools/m4/m4/0001-freeze-fix-compilation-error-with-security-flags-ena.patch @@ -0,0 +1,35 @@ +From 5f07971ef7f087500f19beb778ff1c8fb176d76d Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andr=C3=A9=20Draszik?= +Date: Thu, 23 Mar 2017 12:23:24 +0000 +Subject: [PATCH 1/2] freeze: fix compilation error with security flags enabled +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +| ../../m4-1.4.9/src/freeze.c: In function 'produce_frozen_state': +| ../../m4-1.4.9/src/freeze.c:61:7: error: format not a string literal and no format arguments [-Werror=format-security] +| M4ERROR ((warning_status, errno, name)); +| ^~~~~~~ + +Upstream-Status: Inappropriate [required for m4 1.4.9 (GPLv2) recipe only] +Signed-off-by: André Draszik +--- + src/freeze.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/freeze.c b/src/freeze.c +index 7b8a7bc..eebcc59 100644 +--- a/src/freeze.c ++++ b/src/freeze.c +@@ -58,7 +58,7 @@ produce_frozen_state (const char *name) + + if (file = fopen (name, O_BINARY ? "wb" : "w"), !file) + { +- M4ERROR ((warning_status, errno, name)); ++ M4ERROR ((warning_status, errno, "fopen failed: %s", name)); + return; + } + +-- +2.11.0 + -- cgit v1.2.3-54-g00ecf