]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - package/libkcapi/0001-Have-sufficient-memory-size-for-message.patch
libksba: add hash for license files
[coffee/buildroot.git] / package / libkcapi / 0001-Have-sufficient-memory-size-for-message.patch
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
5
6 With GCC 7, the size of the buffer in snprintf is checked. The
7 occurrence here is found to be too small.
8
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>
12 ---
13  speed-test/cryptoperf-base.c | 2 +-
14  1 file changed, 1 insertion(+), 1 deletion(-)
15
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),
22                         (unsigned long)ops);
23         } else {
24 -               #define VALLEN 10
25 +               #define VALLEN 23
26                 char byteseconds[VALLEN + 1];
27  
28                 memset(byteseconds, 0, sizeof(byteseconds));
29 -- 
30 2.7.4
31