1 From b56deda7c13c257050fdbdd71c1a5a47b78aa63e Mon Sep 17 00:00:00 2001
2 From: Stephan Mueller <smueller@chronox.de>
3 Date: Thu, 3 Aug 2017 17:50:51 +0200
4 Subject: [PATCH] Have sufficient memory size for message
6 With GCC 7, the size of the buffer in snprintf is checked. The
7 occurrence here is found to be too small.
9 Signed-off-by: Stephan Mueller <smueller@chronox.de>
10 [Upstream commit: https://github.com/smuellerDD/libkcapi/commit/b56deda7c13c257050fdbdd71c1a5a47b78aa63e]
11 Signed-off-by: Marcin Nowakowski <marcin.nowakowski@imgtec.com>
13 speed-test/cryptoperf-base.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
16 diff --git a/speed-test/cryptoperf-base.c b/speed-test/cryptoperf-base.c
17 index 8766ca7..07384ae 100644
18 --- a/speed-test/cryptoperf-base.c
19 +++ b/speed-test/cryptoperf-base.c
20 @@ -172,7 +172,7 @@ char *cp_print_status(struct cp_test *test, int raw)
21 (unsigned long)(processed_bytes/totaltime),
26 char byteseconds[VALLEN + 1];
28 memset(byteseconds, 0, sizeof(byteseconds));