Skip to content

Commit 407dbc2

Browse files
Andres Amaya GarciaAndres Amaya Garcia
Andres Amaya Garcia
authored and
Andres Amaya Garcia
committed
benchmark: reduce error buffer size
1 parent 5bee6ae commit 407dbc2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

benchmark/main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,8 @@ void ecp_clear_precomputed(mbedtls_ecp_group *grp)
213213

214214
static unsigned char buf[BUFSIZE];
215215
static unsigned char tmp[200];
216-
static char err_buf[200];
216+
/* The longest error message has 134 characters (including \0) */
217+
static char err_buf[134];
217218
static char title[TITLE_LEN];
218219

219220
static volatile int alarmed;

0 commit comments

Comments
 (0)