From 7f381275b1c14fc4c6c3049a397c7932b6c702f2 Mon Sep 17 00:00:00 2001 From: Ethan Looney Date: Mon, 3 Aug 2020 13:31:11 -0700 Subject: [PATCH] Removed comment and changed len equal to variables instead of numbers --- tests/api.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/api.c b/tests/api.c index e6596e019..9e10e55cb 100644 --- a/tests/api.c +++ b/tests/api.c @@ -33727,7 +33727,7 @@ static int test_mp_rand (void) int ret = 0; #if defined(WC_RSA_BLINDING) && defined(WOLFSSL_PUBLIC_MP) mp_int a; - int digits = 1; /*Setting equal to 0 causes a segmentation fault, line 183*/ + int digits = 1; WC_RNG rng; printf(testingFmt, "mp_rand()"); @@ -33829,14 +33829,14 @@ static int test_wc_export_int (void) ret = 0; } } - len = 255; + len = sizeof(buf)-1; if (ret == 0) { ret = wc_export_int(&mp, buf, &len, keySz, encType); if (ret == BUFFER_E) { ret = 0; } } - len = 256; + len = sizeof(buf); if (ret == 0) { ret = wc_export_int(&mp, buf, &len, keySz, WC_TYPE_HEX_STR); }