test/bntest.c:552: error: MEMORY_LEAK
  memory dynamically allocated by call to `BN_MONT_CTX_new()` at line 399, column 17 is not reachable after line 552, column 5.
Showing all 136 steps of the trace


test/bntest.c:384:1: start of procedure test_modexp_mont5()
382.    * x86_64 cause a different code branch to be taken.
383.    */
384. > static int test_modexp_mont5(void)
385.   {
386.       BIGNUM *a = NULL, *p = NULL, *m = NULL, *d = NULL, *e = NULL;

test/bntest.c:386:5: 
384.   static int test_modexp_mont5(void)
385.   {
386. >     BIGNUM *a = NULL, *p = NULL, *m = NULL, *d = NULL, *e = NULL;
387.       BIGNUM *b = NULL, *n = NULL, *c = NULL;
388.       BN_MONT_CTX *mont = NULL;

test/bntest.c:387:5: 
385.   {
386.       BIGNUM *a = NULL, *p = NULL, *m = NULL, *d = NULL, *e = NULL;
387. >     BIGNUM *b = NULL, *n = NULL, *c = NULL;
388.       BN_MONT_CTX *mont = NULL;
389.       int st = 0;

test/bntest.c:388:5: 
386.       BIGNUM *a = NULL, *p = NULL, *m = NULL, *d = NULL, *e = NULL;
387.       BIGNUM *b = NULL, *n = NULL, *c = NULL;
388. >     BN_MONT_CTX *mont = NULL;
389.       int st = 0;
390.   

test/bntest.c:389:5: 
387.       BIGNUM *b = NULL, *n = NULL, *c = NULL;
388.       BN_MONT_CTX *mont = NULL;
389. >     int st = 0;
390.   
391.       if (!TEST_ptr(a = BN_new())

test/bntest.c:391:10: Skipping BN_new(): empty list of specs
389.       int st = 0;
390.   
391.       if (!TEST_ptr(a = BN_new())
                ^
392.               || !TEST_ptr(p = BN_new())
393.               || !TEST_ptr(m = BN_new())

test/testutil/tests.c:228:1: start of procedure test_ptr()
  226.   }
  227.   
  228. > int test_ptr(const char *file, int line, const char *s, const void *p)
  229.   {
  230.       if (p != NULL)

test/testutil/tests.c:230:9: Taking true branch
  228.   int test_ptr(const char *file, int line, const char *s, const void *p)
  229.   {
  230.       if (p != NULL)
                 ^
  231.           return 1;
  232.       test_fail_message(NULL, file, line, "ptr", s, "NULL", "!=", "%p", p);

test/testutil/tests.c:231:9: 
  229.   {
  230.       if (p != NULL)
  231. >         return 1;
  232.       test_fail_message(NULL, file, line, "ptr", s, "NULL", "!=", "%p", p);
  233.       return 0;

test/testutil/tests.c:234:1: return from a call to test_ptr
  232.       test_fail_message(NULL, file, line, "ptr", s, "NULL", "!=", "%p", p);
  233.       return 0;
  234. > }
  235.   
  236.   int test_true(const char *file, int line, const char *s, int b)

test/bntest.c:391:10: Taking false branch
389.       int st = 0;
390.   
391.       if (!TEST_ptr(a = BN_new())
                ^
392.               || !TEST_ptr(p = BN_new())
393.               || !TEST_ptr(m = BN_new())

test/bntest.c:392:17: Skipping BN_new(): empty list of specs
390.   
391.       if (!TEST_ptr(a = BN_new())
392.               || !TEST_ptr(p = BN_new())
                       ^
393.               || !TEST_ptr(m = BN_new())
394.               || !TEST_ptr(d = BN_new())

test/testutil/tests.c:228:1: start of procedure test_ptr()
  226.   }
  227.   
  228. > int test_ptr(const char *file, int line, const char *s, const void *p)
  229.   {
  230.       if (p != NULL)

test/testutil/tests.c:230:9: Taking true branch
  228.   int test_ptr(const char *file, int line, const char *s, const void *p)
  229.   {
  230.       if (p != NULL)
                 ^
  231.           return 1;
  232.       test_fail_message(NULL, file, line, "ptr", s, "NULL", "!=", "%p", p);

test/testutil/tests.c:231:9: 
  229.   {
  230.       if (p != NULL)
  231. >         return 1;
  232.       test_fail_message(NULL, file, line, "ptr", s, "NULL", "!=", "%p", p);
  233.       return 0;

test/testutil/tests.c:234:1: return from a call to test_ptr
  232.       test_fail_message(NULL, file, line, "ptr", s, "NULL", "!=", "%p", p);
  233.       return 0;
  234. > }
  235.   
  236.   int test_true(const char *file, int line, const char *s, int b)

test/bntest.c:392:17: Taking false branch
390.   
391.       if (!TEST_ptr(a = BN_new())
392.               || !TEST_ptr(p = BN_new())
                       ^
393.               || !TEST_ptr(m = BN_new())
394.               || !TEST_ptr(d = BN_new())

test/bntest.c:393:17: Skipping BN_new(): empty list of specs
391.       if (!TEST_ptr(a = BN_new())
392.               || !TEST_ptr(p = BN_new())
393.               || !TEST_ptr(m = BN_new())
                       ^
394.               || !TEST_ptr(d = BN_new())
395.               || !TEST_ptr(e = BN_new())

test/testutil/tests.c:228:1: start of procedure test_ptr()
  226.   }
  227.   
  228. > int test_ptr(const char *file, int line, const char *s, const void *p)
  229.   {
  230.       if (p != NULL)

test/testutil/tests.c:230:9: Taking true branch
  228.   int test_ptr(const char *file, int line, const char *s, const void *p)
  229.   {
  230.       if (p != NULL)
                 ^
  231.           return 1;
  232.       test_fail_message(NULL, file, line, "ptr", s, "NULL", "!=", "%p", p);

test/testutil/tests.c:231:9: 
  229.   {
  230.       if (p != NULL)
  231. >         return 1;
  232.       test_fail_message(NULL, file, line, "ptr", s, "NULL", "!=", "%p", p);
  233.       return 0;

test/testutil/tests.c:234:1: return from a call to test_ptr
  232.       test_fail_message(NULL, file, line, "ptr", s, "NULL", "!=", "%p", p);
  233.       return 0;
  234. > }
  235.   
  236.   int test_true(const char *file, int line, const char *s, int b)

test/bntest.c:393:17: Taking false branch
391.       if (!TEST_ptr(a = BN_new())
392.               || !TEST_ptr(p = BN_new())
393.               || !TEST_ptr(m = BN_new())
                       ^
394.               || !TEST_ptr(d = BN_new())
395.               || !TEST_ptr(e = BN_new())

test/bntest.c:394:17: Skipping BN_new(): empty list of specs
392.               || !TEST_ptr(p = BN_new())
393.               || !TEST_ptr(m = BN_new())
394.               || !TEST_ptr(d = BN_new())
                       ^
395.               || !TEST_ptr(e = BN_new())
396.               || !TEST_ptr(b = BN_new())

test/testutil/tests.c:228:1: start of procedure test_ptr()
  226.   }
  227.   
  228. > int test_ptr(const char *file, int line, const char *s, const void *p)
  229.   {
  230.       if (p != NULL)

test/testutil/tests.c:230:9: Taking true branch
  228.   int test_ptr(const char *file, int line, const char *s, const void *p)
  229.   {
  230.       if (p != NULL)
                 ^
  231.           return 1;
  232.       test_fail_message(NULL, file, line, "ptr", s, "NULL", "!=", "%p", p);

test/testutil/tests.c:231:9: 
  229.   {
  230.       if (p != NULL)
  231. >         return 1;
  232.       test_fail_message(NULL, file, line, "ptr", s, "NULL", "!=", "%p", p);
  233.       return 0;

test/testutil/tests.c:234:1: return from a call to test_ptr
  232.       test_fail_message(NULL, file, line, "ptr", s, "NULL", "!=", "%p", p);
  233.       return 0;
  234. > }
  235.   
  236.   int test_true(const char *file, int line, const char *s, int b)

test/bntest.c:394:17: Taking false branch
392.               || !TEST_ptr(p = BN_new())
393.               || !TEST_ptr(m = BN_new())
394.               || !TEST_ptr(d = BN_new())
                       ^
395.               || !TEST_ptr(e = BN_new())
396.               || !TEST_ptr(b = BN_new())

test/bntest.c:395:17: Skipping BN_new(): empty list of specs
393.               || !TEST_ptr(m = BN_new())
394.               || !TEST_ptr(d = BN_new())
395.               || !TEST_ptr(e = BN_new())
                       ^
396.               || !TEST_ptr(b = BN_new())
397.               || !TEST_ptr(n = BN_new())

test/testutil/tests.c:228:1: start of procedure test_ptr()
  226.   }
  227.   
  228. > int test_ptr(const char *file, int line, const char *s, const void *p)
  229.   {
  230.       if (p != NULL)

test/testutil/tests.c:230:9: Taking true branch
  228.   int test_ptr(const char *file, int line, const char *s, const void *p)
  229.   {
  230.       if (p != NULL)
                 ^
  231.           return 1;
  232.       test_fail_message(NULL, file, line, "ptr", s, "NULL", "!=", "%p", p);

test/testutil/tests.c:231:9: 
  229.   {
  230.       if (p != NULL)
  231. >         return 1;
  232.       test_fail_message(NULL, file, line, "ptr", s, "NULL", "!=", "%p", p);
  233.       return 0;

test/testutil/tests.c:234:1: return from a call to test_ptr
  232.       test_fail_message(NULL, file, line, "ptr", s, "NULL", "!=", "%p", p);
  233.       return 0;
  234. > }
  235.   
  236.   int test_true(const char *file, int line, const char *s, int b)

test/bntest.c:395:17: Taking false branch
393.               || !TEST_ptr(m = BN_new())
394.               || !TEST_ptr(d = BN_new())
395.               || !TEST_ptr(e = BN_new())
                       ^
396.               || !TEST_ptr(b = BN_new())
397.               || !TEST_ptr(n = BN_new())

test/bntest.c:396:17: Skipping BN_new(): empty list of specs
394.               || !TEST_ptr(d = BN_new())
395.               || !TEST_ptr(e = BN_new())
396.               || !TEST_ptr(b = BN_new())
                       ^
397.               || !TEST_ptr(n = BN_new())
398.               || !TEST_ptr(c = BN_new())

test/testutil/tests.c:228:1: start of procedure test_ptr()
  226.   }
  227.   
  228. > int test_ptr(const char *file, int line, const char *s, const void *p)
  229.   {
  230.       if (p != NULL)

test/testutil/tests.c:230:9: Taking true branch
  228.   int test_ptr(const char *file, int line, const char *s, const void *p)
  229.   {
  230.       if (p != NULL)
                 ^
  231.           return 1;
  232.       test_fail_message(NULL, file, line, "ptr", s, "NULL", "!=", "%p", p);

test/testutil/tests.c:231:9: 
  229.   {
  230.       if (p != NULL)
  231. >         return 1;
  232.       test_fail_message(NULL, file, line, "ptr", s, "NULL", "!=", "%p", p);
  233.       return 0;

test/testutil/tests.c:234:1: return from a call to test_ptr
  232.       test_fail_message(NULL, file, line, "ptr", s, "NULL", "!=", "%p", p);
  233.       return 0;
  234. > }
  235.   
  236.   int test_true(const char *file, int line, const char *s, int b)

test/bntest.c:396:17: Taking false branch
394.               || !TEST_ptr(d = BN_new())
395.               || !TEST_ptr(e = BN_new())
396.               || !TEST_ptr(b = BN_new())
                       ^
397.               || !TEST_ptr(n = BN_new())
398.               || !TEST_ptr(c = BN_new())

test/bntest.c:397:17: Skipping BN_new(): empty list of specs
395.               || !TEST_ptr(e = BN_new())
396.               || !TEST_ptr(b = BN_new())
397.               || !TEST_ptr(n = BN_new())
                       ^
398.               || !TEST_ptr(c = BN_new())
399.               || !TEST_ptr(mont = BN_MONT_CTX_new()))

test/testutil/tests.c:228:1: start of procedure test_ptr()
  226.   }
  227.   
  228. > int test_ptr(const char *file, int line, const char *s, const void *p)
  229.   {
  230.       if (p != NULL)

test/testutil/tests.c:230:9: Taking true branch
  228.   int test_ptr(const char *file, int line, const char *s, const void *p)
  229.   {
  230.       if (p != NULL)
                 ^
  231.           return 1;
  232.       test_fail_message(NULL, file, line, "ptr", s, "NULL", "!=", "%p", p);

test/testutil/tests.c:231:9: 
  229.   {
  230.       if (p != NULL)
  231. >         return 1;
  232.       test_fail_message(NULL, file, line, "ptr", s, "NULL", "!=", "%p", p);
  233.       return 0;

test/testutil/tests.c:234:1: return from a call to test_ptr
  232.       test_fail_message(NULL, file, line, "ptr", s, "NULL", "!=", "%p", p);
  233.       return 0;
  234. > }
  235.   
  236.   int test_true(const char *file, int line, const char *s, int b)

test/bntest.c:397:17: Taking false branch
395.               || !TEST_ptr(e = BN_new())
396.               || !TEST_ptr(b = BN_new())
397.               || !TEST_ptr(n = BN_new())
                       ^
398.               || !TEST_ptr(c = BN_new())
399.               || !TEST_ptr(mont = BN_MONT_CTX_new()))

test/bntest.c:398:17: Skipping BN_new(): empty list of specs
396.               || !TEST_ptr(b = BN_new())
397.               || !TEST_ptr(n = BN_new())
398.               || !TEST_ptr(c = BN_new())
                       ^
399.               || !TEST_ptr(mont = BN_MONT_CTX_new()))
400.           goto err;

test/testutil/tests.c:228:1: start of procedure test_ptr()
  226.   }
  227.   
  228. > int test_ptr(const char *file, int line, const char *s, const void *p)
  229.   {
  230.       if (p != NULL)

test/testutil/tests.c:230:9: Taking true branch
  228.   int test_ptr(const char *file, int line, const char *s, const void *p)
  229.   {
  230.       if (p != NULL)
                 ^
  231.           return 1;
  232.       test_fail_message(NULL, file, line, "ptr", s, "NULL", "!=", "%p", p);

test/testutil/tests.c:231:9: 
  229.   {
  230.       if (p != NULL)
  231. >         return 1;
  232.       test_fail_message(NULL, file, line, "ptr", s, "NULL", "!=", "%p", p);
  233.       return 0;

test/testutil/tests.c:234:1: return from a call to test_ptr
  232.       test_fail_message(NULL, file, line, "ptr", s, "NULL", "!=", "%p", p);
  233.       return 0;
  234. > }
  235.   
  236.   int test_true(const char *file, int line, const char *s, int b)

test/bntest.c:398:17: Taking false branch
396.               || !TEST_ptr(b = BN_new())
397.               || !TEST_ptr(n = BN_new())
398.               || !TEST_ptr(c = BN_new())
                       ^
399.               || !TEST_ptr(mont = BN_MONT_CTX_new()))
400.           goto err;

test/bntest.c:399:17: 
397.               || !TEST_ptr(n = BN_new())
398.               || !TEST_ptr(c = BN_new())
399. >             || !TEST_ptr(mont = BN_MONT_CTX_new()))
400.           goto err;
401.   

crypto/bn/bn_mont.c:216:1: start of procedure BN_MONT_CTX_new()
  214.   }
  215.   
  216. > BN_MONT_CTX *BN_MONT_CTX_new(void)
  217.   {
  218.       BN_MONT_CTX *ret;

crypto/bn/bn_mont.c:220:9: 
  218.       BN_MONT_CTX *ret;
  219.   
  220. >     if ((ret = OPENSSL_malloc(sizeof(*ret))) == NULL) {
  221.           BNerr(BN_F_BN_MONT_CTX_NEW, ERR_R_MALLOC_FAILURE);
  222.           return NULL;

crypto/mem.c:192:1: start of procedure CRYPTO_malloc()
    190.   #endif
    191.   
    192. > void *CRYPTO_malloc(size_t num, const char *file, int line)
    193.   {
    194.       void *ret = NULL;

crypto/mem.c:194:5: 
    192.   void *CRYPTO_malloc(size_t num, const char *file, int line)
    193.   {
    194. >     void *ret = NULL;
    195.   
    196.       INCREMENT(malloc_count);

crypto/mem.c:197:9: Taking false branch
    195.   
    196.       INCREMENT(malloc_count);
    197.       if (malloc_impl != NULL && malloc_impl != CRYPTO_malloc)
                   ^
    198.           return malloc_impl(num, file, line);
    199.   

crypto/mem.c:200:9: Taking false branch
    198.           return malloc_impl(num, file, line);
    199.   
    200.       if (num == 0)
                   ^
    201.           return NULL;
    202.   

crypto/mem.c:204:9: Taking true branch
    202.   
    203.       FAILTEST();
    204.       if (allow_customize) {
                   ^
    205.           /*
    206.            * Disallow customization after the first allocation. We only set this

crypto/mem.c:210:9: 
    208.            * allocation.
    209.            */
    210. >         allow_customize = 0;
    211.       }
    212.   #ifndef OPENSSL_NO_CRYPTO_MDEBUG

crypto/mem.c:221:5: 
    219.       }
    220.   #else
    221. >     (void)(file); (void)(line);
    222.       ret = malloc(num);
    223.   #endif

crypto/mem.c:221:19: 
    219.       }
    220.   #else
    221. >     (void)(file); (void)(line);
    222.       ret = malloc(num);
    223.   #endif

crypto/mem.c:222:5: 
    220.   #else
    221.       (void)(file); (void)(line);
    222. >     ret = malloc(num);
    223.   #endif
    224.   

crypto/mem.c:225:5: 
    223.   #endif
    224.   
    225. >     return ret;
    226.   }
    227.   

crypto/mem.c:226:1: return from a call to CRYPTO_malloc
    224.   
    225.       return ret;
    226. > }
    227.   
    228.   void *CRYPTO_zalloc(size_t num, const char *file, int line)

crypto/bn/bn_mont.c:220:9: Taking false branch
  218.       BN_MONT_CTX *ret;
  219.   
  220.       if ((ret = OPENSSL_malloc(sizeof(*ret))) == NULL) {
                 ^
  221.           BNerr(BN_F_BN_MONT_CTX_NEW, ERR_R_MALLOC_FAILURE);
  222.           return NULL;

crypto/bn/bn_mont.c:225:5: 
  223.       }
  224.   
  225. >     BN_MONT_CTX_init(ret);
  226.       ret->flags = BN_FLG_MALLOCED;
  227.       return ret;

crypto/bn/bn_mont.c:230:1: start of procedure BN_MONT_CTX_init()
    228.   }
    229.   
    230. > void BN_MONT_CTX_init(BN_MONT_CTX *ctx)
    231.   {
    232.       ctx->ri = 0;

crypto/bn/bn_mont.c:232:5: 
    230.   void BN_MONT_CTX_init(BN_MONT_CTX *ctx)
    231.   {
    232. >     ctx->ri = 0;
    233.       bn_init(&ctx->RR);
    234.       bn_init(&ctx->N);

crypto/bn/bn_mont.c:233:5: Skipping bn_init(): empty list of specs
    231.   {
    232.       ctx->ri = 0;
    233.       bn_init(&ctx->RR);
               ^
    234.       bn_init(&ctx->N);
    235.       bn_init(&ctx->Ni);

crypto/bn/bn_mont.c:234:5: Skipping bn_init(): empty list of specs
    232.       ctx->ri = 0;
    233.       bn_init(&ctx->RR);
    234.       bn_init(&ctx->N);
               ^
    235.       bn_init(&ctx->Ni);
    236.       ctx->n0[0] = ctx->n0[1] = 0;

crypto/bn/bn_mont.c:235:5: Skipping bn_init(): empty list of specs
    233.       bn_init(&ctx->RR);
    234.       bn_init(&ctx->N);
    235.       bn_init(&ctx->Ni);
               ^
    236.       ctx->n0[0] = ctx->n0[1] = 0;
    237.       ctx->flags = 0;

crypto/bn/bn_mont.c:236:5: 
    234.       bn_init(&ctx->N);
    235.       bn_init(&ctx->Ni);
    236. >     ctx->n0[0] = ctx->n0[1] = 0;
    237.       ctx->flags = 0;
    238.   }

crypto/bn/bn_mont.c:237:5: 
    235.       bn_init(&ctx->Ni);
    236.       ctx->n0[0] = ctx->n0[1] = 0;
    237. >     ctx->flags = 0;
    238.   }
    239.   

crypto/bn/bn_mont.c:238:1: return from a call to BN_MONT_CTX_init
    236.       ctx->n0[0] = ctx->n0[1] = 0;
    237.       ctx->flags = 0;
    238. > }
    239.   
    240.   void BN_MONT_CTX_free(BN_MONT_CTX *mont)

crypto/bn/bn_mont.c:226:5: 
  224.   
  225.       BN_MONT_CTX_init(ret);
  226. >     ret->flags = BN_FLG_MALLOCED;
  227.       return ret;
  228.   }

crypto/bn/bn_mont.c:227:5: 
  225.       BN_MONT_CTX_init(ret);
  226.       ret->flags = BN_FLG_MALLOCED;
  227. >     return ret;
  228.   }
  229.   

crypto/bn/bn_mont.c:228:1: return from a call to BN_MONT_CTX_new
  226.       ret->flags = BN_FLG_MALLOCED;
  227.       return ret;
  228. > }
  229.   
  230.   void BN_MONT_CTX_init(BN_MONT_CTX *ctx)

test/testutil/tests.c:228:1: start of procedure test_ptr()
  226.   }
  227.   
  228. > int test_ptr(const char *file, int line, const char *s, const void *p)
  229.   {
  230.       if (p != NULL)

test/testutil/tests.c:230:9: Taking true branch
  228.   int test_ptr(const char *file, int line, const char *s, const void *p)
  229.   {
  230.       if (p != NULL)
                 ^
  231.           return 1;
  232.       test_fail_message(NULL, file, line, "ptr", s, "NULL", "!=", "%p", p);

test/testutil/tests.c:231:9: 
  229.   {
  230.       if (p != NULL)
  231. >         return 1;
  232.       test_fail_message(NULL, file, line, "ptr", s, "NULL", "!=", "%p", p);
  233.       return 0;

test/testutil/tests.c:234:1: return from a call to test_ptr
  232.       test_fail_message(NULL, file, line, "ptr", s, "NULL", "!=", "%p", p);
  233.       return 0;
  234. > }
  235.   
  236.   int test_true(const char *file, int line, const char *s, int b)

test/bntest.c:399:17: Taking false branch
397.               || !TEST_ptr(n = BN_new())
398.               || !TEST_ptr(c = BN_new())
399.               || !TEST_ptr(mont = BN_MONT_CTX_new()))
                       ^
400.           goto err;
401.   

test/bntest.c:402:5: 
400.           goto err;
401.   
402. >     BN_bntest_rand(m, 1024, 0, 1); /* must be odd for montgomery */
403.       /* Zero exponent */
404.       BN_bntest_rand(a, 1024, 0, 0);

crypto/bn/bn_rand.c:102:1: start of procedure BN_bntest_rand()
  100.   }
  101.   
  102. > int BN_bntest_rand(BIGNUM *rnd, int bits, int top, int bottom)
  103.   {
  104.       return bnrand(TESTING, rnd, bits, top, bottom);

crypto/bn/bn_rand.c:104:5: Skipping bnrand(): empty list of specs
  102.   int BN_bntest_rand(BIGNUM *rnd, int bits, int top, int bottom)
  103.   {
  104.       return bnrand(TESTING, rnd, bits, top, bottom);
             ^
  105.   }
  106.   

crypto/bn/bn_rand.c:105:1: return from a call to BN_bntest_rand
  103.   {
  104.       return bnrand(TESTING, rnd, bits, top, bottom);
  105. > }
  106.   
  107.   int BN_priv_rand(BIGNUM *rnd, int bits, int top, int bottom)

test/bntest.c:404:5: 
402.       BN_bntest_rand(m, 1024, 0, 1); /* must be odd for montgomery */
403.       /* Zero exponent */
404. >     BN_bntest_rand(a, 1024, 0, 0);
405.       BN_zero(p);
406.       if (!TEST_true(BN_mod_exp_mont_consttime(d, a, p, m, ctx, NULL)))

crypto/bn/bn_rand.c:102:1: start of procedure BN_bntest_rand()
  100.   }
  101.   
  102. > int BN_bntest_rand(BIGNUM *rnd, int bits, int top, int bottom)
  103.   {
  104.       return bnrand(TESTING, rnd, bits, top, bottom);

crypto/bn/bn_rand.c:104:5: Skipping bnrand(): empty list of specs
  102.   int BN_bntest_rand(BIGNUM *rnd, int bits, int top, int bottom)
  103.   {
  104.       return bnrand(TESTING, rnd, bits, top, bottom);
             ^
  105.   }
  106.   

crypto/bn/bn_rand.c:105:1: return from a call to BN_bntest_rand
  103.   {
  104.       return bnrand(TESTING, rnd, bits, top, bottom);
  105. > }
  106.   
  107.   int BN_priv_rand(BIGNUM *rnd, int bits, int top, int bottom)

test/bntest.c:405:5: Skipping BN_set_word(): empty list of specs
403.       /* Zero exponent */
404.       BN_bntest_rand(a, 1024, 0, 0);
405.       BN_zero(p);
           ^
406.       if (!TEST_true(BN_mod_exp_mont_consttime(d, a, p, m, ctx, NULL)))
407.           goto err;

test/bntest.c:406:10: Condition is true
404.       BN_bntest_rand(a, 1024, 0, 0);
405.       BN_zero(p);
406.       if (!TEST_true(BN_mod_exp_mont_consttime(d, a, p, m, ctx, NULL)))
                ^
407.           goto err;
408.       if (!TEST_BN_eq_one(d))

test/testutil/tests.c:236:1: start of procedure test_true()
  234.   }
  235.   
  236. > int test_true(const char *file, int line, const char *s, int b)
  237.   {
  238.       if (b)

test/testutil/tests.c:238:9: Taking true branch
  236.   int test_true(const char *file, int line, const char *s, int b)
  237.   {
  238.       if (b)
                 ^
  239.           return 1;
  240.       test_fail_message(NULL, file, line, "bool", s, "true", "==", "false");

test/testutil/tests.c:239:9: 
  237.   {
  238.       if (b)
  239. >         return 1;
  240.       test_fail_message(NULL, file, line, "bool", s, "true", "==", "false");
  241.       return 0;

test/testutil/tests.c:242:1: return from a call to test_true
  240.       test_fail_message(NULL, file, line, "bool", s, "true", "==", "false");
  241.       return 0;
  242. > }
  243.   
  244.   int test_false(const char *file, int line, const char *s, int b)

test/bntest.c:406:10: Taking false branch
404.       BN_bntest_rand(a, 1024, 0, 0);
405.       BN_zero(p);
406.       if (!TEST_true(BN_mod_exp_mont_consttime(d, a, p, m, ctx, NULL)))
                ^
407.           goto err;
408.       if (!TEST_BN_eq_one(d))

test/bntest.c:408:10: 
406.       if (!TEST_true(BN_mod_exp_mont_consttime(d, a, p, m, ctx, NULL)))
407.           goto err;
408. >     if (!TEST_BN_eq_one(d))
409.           goto err;
410.   

test/testutil/tests.c:364:1: start of procedure test_BN_eq_one()
  362.   DEFINE_BN_COMPARISONS(le, <=, BN_is_negative(a) || BN_is_zero(a))
  363.   
  364. > int test_BN_eq_one(const char *file, int line, const char *s, const BIGNUM *a)
  365.   {
  366.       if (a != NULL && BN_is_one(a))

test/testutil/tests.c:366:9: Taking true branch
  364.   int test_BN_eq_one(const char *file, int line, const char *s, const BIGNUM *a)
  365.   {
  366.       if (a != NULL && BN_is_one(a))
                 ^
  367.           return 1;
  368.       test_fail_bignum_mono_message(NULL, file, line, "BIGNUM", s, "1", "==", a);

test/testutil/tests.c:366:22: 
  364.   int test_BN_eq_one(const char *file, int line, const char *s, const BIGNUM *a)
  365.   {
  366. >     if (a != NULL && BN_is_one(a))
  367.           return 1;
  368.       test_fail_bignum_mono_message(NULL, file, line, "BIGNUM", s, "1", "==", a);

crypto/bn/bn_lib.c:858:1: start of procedure BN_is_one()
    856.   }
    857.   
    858. > int BN_is_one(const BIGNUM *a)
    859.   {
    860.       return BN_abs_is_word(a, 1) && !a->neg;

crypto/bn/bn_lib.c:860:12: 
    858.   int BN_is_one(const BIGNUM *a)
    859.   {
    860. >     return BN_abs_is_word(a, 1) && !a->neg;
    861.   }
    862.   

crypto/bn/bn_lib.c:848:1: start of procedure BN_abs_is_word()
      846.   }
      847.   
      848. > int BN_abs_is_word(const BIGNUM *a, const BN_ULONG w)
      849.   {
      850.       return ((a->top == 1) && (a->d[0] == w)) || ((w == 0) && (a->top == 0));

crypto/bn/bn_lib.c:850:14: Condition is true
      848.   int BN_abs_is_word(const BIGNUM *a, const BN_ULONG w)
      849.   {
      850.       return ((a->top == 1) && (a->d[0] == w)) || ((w == 0) && (a->top == 0));
                          ^
      851.   }
      852.   

crypto/bn/bn_lib.c:850:31: Condition is true
      848.   int BN_abs_is_word(const BIGNUM *a, const BN_ULONG w)
      849.   {
      850.       return ((a->top == 1) && (a->d[0] == w)) || ((w == 0) && (a->top == 0));
                                           ^
      851.   }
      852.   

crypto/bn/bn_lib.c:850:12: 
      848.   int BN_abs_is_word(const BIGNUM *a, const BN_ULONG w)
      849.   {
      850. >     return ((a->top == 1) && (a->d[0] == w)) || ((w == 0) && (a->top == 0));
      851.   }
      852.   

crypto/bn/bn_lib.c:850:5: 
      848.   int BN_abs_is_word(const BIGNUM *a, const BN_ULONG w)
      849.   {
      850. >     return ((a->top == 1) && (a->d[0] == w)) || ((w == 0) && (a->top == 0));
      851.   }
      852.   

crypto/bn/bn_lib.c:851:1: return from a call to BN_abs_is_word
      849.   {
      850.       return ((a->top == 1) && (a->d[0] == w)) || ((w == 0) && (a->top == 0));
      851. > }
      852.   
      853.   int BN_is_zero(const BIGNUM *a)

crypto/bn/bn_lib.c:860:12: Condition is true
    858.   int BN_is_one(const BIGNUM *a)
    859.   {
    860.       return BN_abs_is_word(a, 1) && !a->neg;
                      ^
    861.   }
    862.   

crypto/bn/bn_lib.c:860:37: Condition is false
    858.   int BN_is_one(const BIGNUM *a)
    859.   {
    860.       return BN_abs_is_word(a, 1) && !a->neg;
                                               ^
    861.   }
    862.   

crypto/bn/bn_lib.c:860:12: 
    858.   int BN_is_one(const BIGNUM *a)
    859.   {
    860. >     return BN_abs_is_word(a, 1) && !a->neg;
    861.   }
    862.   

crypto/bn/bn_lib.c:860:5: 
    858.   int BN_is_one(const BIGNUM *a)
    859.   {
    860. >     return BN_abs_is_word(a, 1) && !a->neg;
    861.   }
    862.   

crypto/bn/bn_lib.c:861:1: return from a call to BN_is_one
    859.   {
    860.       return BN_abs_is_word(a, 1) && !a->neg;
    861. > }
    862.   
    863.   int BN_is_word(const BIGNUM *a, const BN_ULONG w)

test/testutil/tests.c:366:22: Taking false branch
  364.   int test_BN_eq_one(const char *file, int line, const char *s, const BIGNUM *a)
  365.   {
  366.       if (a != NULL && BN_is_one(a))
                              ^
  367.           return 1;
  368.       test_fail_bignum_mono_message(NULL, file, line, "BIGNUM", s, "1", "==", a);

test/testutil/tests.c:368:5: 
  366.       if (a != NULL && BN_is_one(a))
  367.           return 1;
  368. >     test_fail_bignum_mono_message(NULL, file, line, "BIGNUM", s, "1", "==", a);
  369.       return 0;
  370.   }

test/testutil/format_output.c:373:1: start of procedure test_fail_bignum_mono_message()
    371.   }
    372.   
    373. > void test_fail_bignum_mono_message(const char *prefix, const char *file,
    374.                                      int line, const char *type,
    375.                                      const char *left, const char *right,

test/testutil/format_output.c:378:5: Skipping test_fail_bignum_common(): empty list of specs
    376.                                      const char *op, const BIGNUM *bn)
    377.   {
    378.       test_fail_bignum_common(prefix, file, line, type, left, right, op, bn, bn);
               ^
    379.       test_printf_stderr("\n");
    380.   }

test/testutil/format_output.c:379:5: Skipping test_printf_stderr(): empty list of specs
    377.   {
    378.       test_fail_bignum_common(prefix, file, line, type, left, right, op, bn, bn);
    379.       test_printf_stderr("\n");
               ^
    380.   }
    381.   

test/testutil/format_output.c:380:1: return from a call to test_fail_bignum_mono_message
    378.       test_fail_bignum_common(prefix, file, line, type, left, right, op, bn, bn);
    379.       test_printf_stderr("\n");
    380. > }
    381.   
    382.   void test_output_bignum(const char *name, const BIGNUM *bn)

test/testutil/tests.c:369:5: 
  367.           return 1;
  368.       test_fail_bignum_mono_message(NULL, file, line, "BIGNUM", s, "1", "==", a);
  369. >     return 0;
  370.   }
  371.   

test/testutil/tests.c:370:1: return from a call to test_BN_eq_one
  368.       test_fail_bignum_mono_message(NULL, file, line, "BIGNUM", s, "1", "==", a);
  369.       return 0;
  370. > }
  371.   
  372.   int test_BN_odd(const char *file, int line, const char *s, const BIGNUM *a)

test/bntest.c:408:10: Taking true branch
406.       if (!TEST_true(BN_mod_exp_mont_consttime(d, a, p, m, ctx, NULL)))
407.           goto err;
408.       if (!TEST_BN_eq_one(d))
                ^
409.           goto err;
410.   

test/bntest.c:551:1: 
549.       st = 1;
550.   
551. > err:
552.       BN_MONT_CTX_free(mont);
553.       BN_free(a);

test/bntest.c:552:5: 
550.   
551.   err:
552. >     BN_MONT_CTX_free(mont);
553.       BN_free(a);
554.       BN_free(p);

crypto/bn/bn_mont.c:240:1: start of procedure BN_MONT_CTX_free()
  238.   }
  239.   
  240. > void BN_MONT_CTX_free(BN_MONT_CTX *mont)
  241.   {
  242.       if (mont == NULL)

crypto/bn/bn_mont.c:242:9: Taking false branch
  240.   void BN_MONT_CTX_free(BN_MONT_CTX *mont)
  241.   {
  242.       if (mont == NULL)
                 ^
  243.           return;
  244.       BN_clear_free(&mont->RR);

crypto/bn/bn_mont.c:244:5: Skipping BN_clear_free(): empty list of specs
  242.       if (mont == NULL)
  243.           return;
  244.       BN_clear_free(&mont->RR);
             ^
  245.       BN_clear_free(&mont->N);
  246.       BN_clear_free(&mont->Ni);

crypto/bn/bn_mont.c:245:5: Skipping BN_clear_free(): empty list of specs
  243.           return;
  244.       BN_clear_free(&mont->RR);
  245.       BN_clear_free(&mont->N);
             ^
  246.       BN_clear_free(&mont->Ni);
  247.       if (mont->flags & BN_FLG_MALLOCED)

crypto/bn/bn_mont.c:246:5: Skipping BN_clear_free(): empty list of specs
  244.       BN_clear_free(&mont->RR);
  245.       BN_clear_free(&mont->N);
  246.       BN_clear_free(&mont->Ni);
             ^
  247.       if (mont->flags & BN_FLG_MALLOCED)
  248.           OPENSSL_free(mont);

crypto/bn/bn_mont.c:247:9: Taking false branch
  245.       BN_clear_free(&mont->N);
  246.       BN_clear_free(&mont->Ni);
  247.       if (mont->flags & BN_FLG_MALLOCED)
                 ^
  248.           OPENSSL_free(mont);
  249.   }

crypto/bn/bn_mont.c:247:5: 
  245.       BN_clear_free(&mont->N);
  246.       BN_clear_free(&mont->Ni);
  247. >     if (mont->flags & BN_FLG_MALLOCED)
  248.           OPENSSL_free(mont);
  249.   }

crypto/bn/bn_mont.c:249:1: return from a call to BN_MONT_CTX_free
  247.       if (mont->flags & BN_FLG_MALLOCED)
  248.           OPENSSL_free(mont);
  249. > }
  250.   
  251.   int BN_MONT_CTX_set(BN_MONT_CTX *mont, const BIGNUM *mod, BN_CTX *ctx)
