All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] libkcapi: fix build with gcc 7.x
@ 2017-08-28  9:15 Marcin Nowakowski
  2017-08-29 21:20 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Marcin Nowakowski @ 2017-08-28  9:15 UTC (permalink / raw)
  To: buildroot

Add an upstream patch to make libkcapi build with gcc 7.x.

Fixes:

  http://autobuild.buildroot.net/results/01f/01f207ccd1cf5fc030510cb7a4eb2649e124b49b/

Signed-off-by: Marcin Nowakowski <marcin.nowakowski@imgtec.com>
---
 ...1-Have-sufficient-memory-size-for-message.patch | 31 ++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 package/libkcapi/0001-Have-sufficient-memory-size-for-message.patch

diff --git a/package/libkcapi/0001-Have-sufficient-memory-size-for-message.patch b/package/libkcapi/0001-Have-sufficient-memory-size-for-message.patch
new file mode 100644
index 0000000..7526efe
--- /dev/null
+++ b/package/libkcapi/0001-Have-sufficient-memory-size-for-message.patch
@@ -0,0 +1,31 @@
+From b56deda7c13c257050fdbdd71c1a5a47b78aa63e Mon Sep 17 00:00:00 2001
+From: Stephan Mueller <smueller@chronox.de>
+Date: Thu, 3 Aug 2017 17:50:51 +0200
+Subject: [PATCH] Have sufficient memory size for message
+
+With GCC 7, the size of the buffer in snprintf is checked. The
+occurrence here is found to be too small.
+
+Signed-off-by: Stephan Mueller <smueller@chronox.de>
+
+[Upstream commit: https://github.com/smuellerDD/libkcapi/commit/b56deda7c13c257050fdbdd71c1a5a47b78aa63e]
+---
+ speed-test/cryptoperf-base.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/speed-test/cryptoperf-base.c b/speed-test/cryptoperf-base.c
+index 8766ca7..07384ae 100644
+--- a/speed-test/cryptoperf-base.c
++++ b/speed-test/cryptoperf-base.c
+@@ -172,7 +172,7 @@ char *cp_print_status(struct cp_test *test, int raw)
+ 			(unsigned long)(processed_bytes/totaltime),
+ 			(unsigned long)ops);
+ 	} else {
+-		#define VALLEN 10
++		#define VALLEN 23
+ 		char byteseconds[VALLEN + 1];
+ 
+ 		memset(byteseconds, 0, sizeof(byteseconds));
+-- 
+2.7.4
+
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH] libkcapi: fix build with gcc 7.x
  2017-08-28  9:15 [Buildroot] [PATCH] libkcapi: fix build with gcc 7.x Marcin Nowakowski
@ 2017-08-29 21:20 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2017-08-29 21:20 UTC (permalink / raw)
  To: buildroot

Hello,

On Mon, 28 Aug 2017 11:15:19 +0200, Marcin Nowakowski wrote:
> Add an upstream patch to make libkcapi build with gcc 7.x.
> 
> Fixes:
> 
>   http://autobuild.buildroot.net/results/01f/01f207ccd1cf5fc030510cb7a4eb2649e124b49b/
> 
> Signed-off-by: Marcin Nowakowski <marcin.nowakowski@imgtec.com>
> ---
>  ...1-Have-sufficient-memory-size-for-message.patch | 31 ++++++++++++++++++++++
>  1 file changed, 31 insertions(+)
>  create mode 100644 package/libkcapi/0001-Have-sufficient-memory-size-for-message.patch

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-08-29 21:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-28  9:15 [Buildroot] [PATCH] libkcapi: fix build with gcc 7.x Marcin Nowakowski
2017-08-29 21:20 ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.