test/bntest.c:1873: error: NULL_DEREFERENCE
  pointer `a` last assigned on line 1871 could be null and is dereferenced at line 1873, column 9.
Showing all 134 steps of the trace


test/bntest.c:1858:1: start of procedure test_lshift()
1856.   }
1857.   
1858. > int test_lshift(BIO *bp, BN_CTX *ctx, BIGNUM *a_)
1859.   {
1860.       BIGNUM *a, *b, *c, *d;

test/bntest.c:1863:5: 
1861.       int i;
1862.   
1863. >     b = BN_new();
1864.       c = BN_new();
1865.       d = BN_new();

crypto/bn/bn_lib.c:276:1: start of procedure BN_new()
  274.   }
  275.   
  276. > BIGNUM *BN_new(void)
  277.   {
  278.       BIGNUM *ret;

crypto/bn/bn_lib.c:280:9: 
  278.       BIGNUM *ret;
  279.   
  280. >     if ((ret = OPENSSL_zalloc(sizeof(*ret))) == NULL) {
  281.           BNerr(BN_F_BN_NEW, ERR_R_MALLOC_FAILURE);
  282.           return (NULL);

crypto/mem.c:156:1: start of procedure CRYPTO_zalloc()
    154.   }
    155.   
    156. > void *CRYPTO_zalloc(size_t num, const char *file, int line)
    157.   {
    158.       void *ret = CRYPTO_malloc(num, file, line);

crypto/mem.c:158:5: 
    156.   void *CRYPTO_zalloc(size_t num, const char *file, int line)
    157.   {
    158. >     void *ret = CRYPTO_malloc(num, file, line);
    159.   
    160.       if (ret != NULL)

crypto/mem.c:119:1: start of procedure CRYPTO_malloc()
      117.   }
      118.   
      119. > void *CRYPTO_malloc(size_t num, const char *file, int line)
      120.   {
      121.       void *ret = NULL;

crypto/mem.c:121:5: 
      119.   void *CRYPTO_malloc(size_t num, const char *file, int line)
      120.   {
      121. >     void *ret = NULL;
      122.   
      123.       if (num <= 0)

crypto/mem.c:123:9: Taking false branch
      121.       void *ret = NULL;
      122.   
      123.       if (num <= 0)
                     ^
      124.           return NULL;
      125.   

crypto/mem.c:126:5: 
      124.           return NULL;
      125.   
      126. >     allow_customize = 0;
      127.   #ifndef OPENSSL_NO_CRYPTO_MDEBUG
      128.       if (call_malloc_debug) {

crypto/mem.c:136:5: 
      134.       }
      135.   #else
      136. >     (void)file;
      137.       (void)line;
      138.       ret = malloc(num);

crypto/mem.c:137:5: 
      135.   #else
      136.       (void)file;
      137. >     (void)line;
      138.       ret = malloc(num);
      139.   #endif

crypto/mem.c:138:5: 
      136.       (void)file;
      137.       (void)line;
      138. >     ret = malloc(num);
      139.   #endif
      140.   

crypto/mem.c:153:5: 
      151.   #endif
      152.   
      153. >     return ret;
      154.   }
      155.   

crypto/mem.c:154:1: return from a call to CRYPTO_malloc
      152.   
      153.       return ret;
      154. > }
      155.   
      156.   void *CRYPTO_zalloc(size_t num, const char *file, int line)

crypto/mem.c:160:9: Taking true branch
    158.       void *ret = CRYPTO_malloc(num, file, line);
    159.   
    160.       if (ret != NULL)
                   ^
    161.           memset(ret, 0, num);
    162.       return ret;

crypto/mem.c:161:9: 
    159.   
    160.       if (ret != NULL)
    161. >         memset(ret, 0, num);
    162.       return ret;
    163.   }

crypto/mem.c:162:5: 
    160.       if (ret != NULL)
    161.           memset(ret, 0, num);
    162. >     return ret;
    163.   }
    164.   

crypto/mem.c:163:1: return from a call to CRYPTO_zalloc
    161.           memset(ret, 0, num);
    162.       return ret;
    163. > }
    164.   
    165.   void *CRYPTO_realloc(void *str, size_t num, const char *file, int line)

crypto/bn/bn_lib.c:280:9: Taking false branch
  278.       BIGNUM *ret;
  279.   
  280.       if ((ret = OPENSSL_zalloc(sizeof(*ret))) == NULL) {
                 ^
  281.           BNerr(BN_F_BN_NEW, ERR_R_MALLOC_FAILURE);
  282.           return (NULL);

crypto/bn/bn_lib.c:284:5: 
  282.           return (NULL);
  283.       }
  284. >     ret->flags = BN_FLG_MALLOCED;
  285.       bn_check_top(ret);
  286.       return (ret);

crypto/bn/bn_lib.c:286:5: 
  284.       ret->flags = BN_FLG_MALLOCED;
  285.       bn_check_top(ret);
  286. >     return (ret);
  287.   }
  288.   

crypto/bn/bn_lib.c:287:1: return from a call to BN_new
  285.       bn_check_top(ret);
  286.       return (ret);
  287. > }
  288.   
  289.    BIGNUM *BN_secure_new(void)

test/bntest.c:1864:5: 
1862.   
1863.       b = BN_new();
1864. >     c = BN_new();
1865.       d = BN_new();
1866.       BN_one(c);

crypto/bn/bn_lib.c:276:1: start of procedure BN_new()
  274.   }
  275.   
  276. > BIGNUM *BN_new(void)
  277.   {
  278.       BIGNUM *ret;

crypto/bn/bn_lib.c:280:9: 
  278.       BIGNUM *ret;
  279.   
  280. >     if ((ret = OPENSSL_zalloc(sizeof(*ret))) == NULL) {
  281.           BNerr(BN_F_BN_NEW, ERR_R_MALLOC_FAILURE);
  282.           return (NULL);

crypto/mem.c:156:1: start of procedure CRYPTO_zalloc()
    154.   }
    155.   
    156. > void *CRYPTO_zalloc(size_t num, const char *file, int line)
    157.   {
    158.       void *ret = CRYPTO_malloc(num, file, line);

crypto/mem.c:158:5: 
    156.   void *CRYPTO_zalloc(size_t num, const char *file, int line)
    157.   {
    158. >     void *ret = CRYPTO_malloc(num, file, line);
    159.   
    160.       if (ret != NULL)

crypto/mem.c:119:1: start of procedure CRYPTO_malloc()
      117.   }
      118.   
      119. > void *CRYPTO_malloc(size_t num, const char *file, int line)
      120.   {
      121.       void *ret = NULL;

crypto/mem.c:121:5: 
      119.   void *CRYPTO_malloc(size_t num, const char *file, int line)
      120.   {
      121. >     void *ret = NULL;
      122.   
      123.       if (num <= 0)

crypto/mem.c:123:9: Taking false branch
      121.       void *ret = NULL;
      122.   
      123.       if (num <= 0)
                     ^
      124.           return NULL;
      125.   

crypto/mem.c:126:5: 
      124.           return NULL;
      125.   
      126. >     allow_customize = 0;
      127.   #ifndef OPENSSL_NO_CRYPTO_MDEBUG
      128.       if (call_malloc_debug) {

crypto/mem.c:136:5: 
      134.       }
      135.   #else
      136. >     (void)file;
      137.       (void)line;
      138.       ret = malloc(num);

crypto/mem.c:137:5: 
      135.   #else
      136.       (void)file;
      137. >     (void)line;
      138.       ret = malloc(num);
      139.   #endif

crypto/mem.c:138:5: 
      136.       (void)file;
      137.       (void)line;
      138. >     ret = malloc(num);
      139.   #endif
      140.   

crypto/mem.c:153:5: 
      151.   #endif
      152.   
      153. >     return ret;
      154.   }
      155.   

crypto/mem.c:154:1: return from a call to CRYPTO_malloc
      152.   
      153.       return ret;
      154. > }
      155.   
      156.   void *CRYPTO_zalloc(size_t num, const char *file, int line)

crypto/mem.c:160:9: Taking true branch
    158.       void *ret = CRYPTO_malloc(num, file, line);
    159.   
    160.       if (ret != NULL)
                   ^
    161.           memset(ret, 0, num);
    162.       return ret;

crypto/mem.c:161:9: 
    159.   
    160.       if (ret != NULL)
    161. >         memset(ret, 0, num);
    162.       return ret;
    163.   }

crypto/mem.c:162:5: 
    160.       if (ret != NULL)
    161.           memset(ret, 0, num);
    162. >     return ret;
    163.   }
    164.   

crypto/mem.c:163:1: return from a call to CRYPTO_zalloc
    161.           memset(ret, 0, num);
    162.       return ret;
    163. > }
    164.   
    165.   void *CRYPTO_realloc(void *str, size_t num, const char *file, int line)

crypto/bn/bn_lib.c:280:9: Taking false branch
  278.       BIGNUM *ret;
  279.   
  280.       if ((ret = OPENSSL_zalloc(sizeof(*ret))) == NULL) {
                 ^
  281.           BNerr(BN_F_BN_NEW, ERR_R_MALLOC_FAILURE);
  282.           return (NULL);

crypto/bn/bn_lib.c:284:5: 
  282.           return (NULL);
  283.       }
  284. >     ret->flags = BN_FLG_MALLOCED;
  285.       bn_check_top(ret);
  286.       return (ret);

crypto/bn/bn_lib.c:286:5: 
  284.       ret->flags = BN_FLG_MALLOCED;
  285.       bn_check_top(ret);
  286. >     return (ret);
  287.   }
  288.   

crypto/bn/bn_lib.c:287:1: return from a call to BN_new
  285.       bn_check_top(ret);
  286.       return (ret);
  287. > }
  288.   
  289.    BIGNUM *BN_secure_new(void)

test/bntest.c:1865:5: 
1863.       b = BN_new();
1864.       c = BN_new();
1865. >     d = BN_new();
1866.       BN_one(c);
1867.   

crypto/bn/bn_lib.c:276:1: start of procedure BN_new()
  274.   }
  275.   
  276. > BIGNUM *BN_new(void)
  277.   {
  278.       BIGNUM *ret;

crypto/bn/bn_lib.c:280:9: 
  278.       BIGNUM *ret;
  279.   
  280. >     if ((ret = OPENSSL_zalloc(sizeof(*ret))) == NULL) {
  281.           BNerr(BN_F_BN_NEW, ERR_R_MALLOC_FAILURE);
  282.           return (NULL);

crypto/mem.c:156:1: start of procedure CRYPTO_zalloc()
    154.   }
    155.   
    156. > void *CRYPTO_zalloc(size_t num, const char *file, int line)
    157.   {
    158.       void *ret = CRYPTO_malloc(num, file, line);

crypto/mem.c:158:5: 
    156.   void *CRYPTO_zalloc(size_t num, const char *file, int line)
    157.   {
    158. >     void *ret = CRYPTO_malloc(num, file, line);
    159.   
    160.       if (ret != NULL)

crypto/mem.c:119:1: start of procedure CRYPTO_malloc()
      117.   }
      118.   
      119. > void *CRYPTO_malloc(size_t num, const char *file, int line)
      120.   {
      121.       void *ret = NULL;

crypto/mem.c:121:5: 
      119.   void *CRYPTO_malloc(size_t num, const char *file, int line)
      120.   {
      121. >     void *ret = NULL;
      122.   
      123.       if (num <= 0)

crypto/mem.c:123:9: Taking false branch
      121.       void *ret = NULL;
      122.   
      123.       if (num <= 0)
                     ^
      124.           return NULL;
      125.   

crypto/mem.c:126:5: 
      124.           return NULL;
      125.   
      126. >     allow_customize = 0;
      127.   #ifndef OPENSSL_NO_CRYPTO_MDEBUG
      128.       if (call_malloc_debug) {

crypto/mem.c:136:5: 
      134.       }
      135.   #else
      136. >     (void)file;
      137.       (void)line;
      138.       ret = malloc(num);

crypto/mem.c:137:5: 
      135.   #else
      136.       (void)file;
      137. >     (void)line;
      138.       ret = malloc(num);
      139.   #endif

crypto/mem.c:138:5: 
      136.       (void)file;
      137.       (void)line;
      138. >     ret = malloc(num);
      139.   #endif
      140.   

crypto/mem.c:153:5: 
      151.   #endif
      152.   
      153. >     return ret;
      154.   }
      155.   

crypto/mem.c:154:1: return from a call to CRYPTO_malloc
      152.   
      153.       return ret;
      154. > }
      155.   
      156.   void *CRYPTO_zalloc(size_t num, const char *file, int line)

crypto/mem.c:160:9: Taking true branch
    158.       void *ret = CRYPTO_malloc(num, file, line);
    159.   
    160.       if (ret != NULL)
                   ^
    161.           memset(ret, 0, num);
    162.       return ret;

crypto/mem.c:161:9: 
    159.   
    160.       if (ret != NULL)
    161. >         memset(ret, 0, num);
    162.       return ret;
    163.   }

crypto/mem.c:162:5: 
    160.       if (ret != NULL)
    161.           memset(ret, 0, num);
    162. >     return ret;
    163.   }
    164.   

crypto/mem.c:163:1: return from a call to CRYPTO_zalloc
    161.           memset(ret, 0, num);
    162.       return ret;
    163. > }
    164.   
    165.   void *CRYPTO_realloc(void *str, size_t num, const char *file, int line)

crypto/bn/bn_lib.c:280:9: Taking false branch
  278.       BIGNUM *ret;
  279.   
  280.       if ((ret = OPENSSL_zalloc(sizeof(*ret))) == NULL) {
                 ^
  281.           BNerr(BN_F_BN_NEW, ERR_R_MALLOC_FAILURE);
  282.           return (NULL);

crypto/bn/bn_lib.c:284:5: 
  282.           return (NULL);
  283.       }
  284. >     ret->flags = BN_FLG_MALLOCED;
  285.       bn_check_top(ret);
  286.       return (ret);

crypto/bn/bn_lib.c:286:5: 
  284.       ret->flags = BN_FLG_MALLOCED;
  285.       bn_check_top(ret);
  286. >     return (ret);
  287.   }
  288.   

crypto/bn/bn_lib.c:287:1: return from a call to BN_new
  285.       bn_check_top(ret);
  286.       return (ret);
  287. > }
  288.   
  289.    BIGNUM *BN_secure_new(void)

test/bntest.c:1866:5: 
1864.       c = BN_new();
1865.       d = BN_new();
1866. >     BN_one(c);
1867.   
1868.       if (a_)

crypto/bn/bn_lib.c:520:1: start of procedure BN_set_word()
  518.   }
  519.   
  520. > int BN_set_word(BIGNUM *a, BN_ULONG w)
  521.   {
  522.       bn_check_top(a);

crypto/bn/bn_lib.c:523:9: Condition is true
  521.   {
  522.       bn_check_top(a);
  523.       if (bn_expand(a, (int)sizeof(BN_ULONG) * 8) == NULL)
                 ^
  524.           return (0);
  525.       a->neg = 0;

crypto/bn/bn_lib.c:523:9: Taking false branch
  521.   {
  522.       bn_check_top(a);
  523.       if (bn_expand(a, (int)sizeof(BN_ULONG) * 8) == NULL)
                 ^
  524.           return (0);
  525.       a->neg = 0;

crypto/bn/bn_lib.c:525:5: 
  523.       if (bn_expand(a, (int)sizeof(BN_ULONG) * 8) == NULL)
  524.           return (0);
  525. >     a->neg = 0;
  526.       a->d[0] = w;
  527.       a->top = (w ? 1 : 0);

crypto/bn/bn_lib.c:526:5: 
  524.           return (0);
  525.       a->neg = 0;
  526. >     a->d[0] = w;
  527.       a->top = (w ? 1 : 0);
  528.       bn_check_top(a);

crypto/bn/bn_lib.c:527:15: Condition is true
  525.       a->neg = 0;
  526.       a->d[0] = w;
  527.       a->top = (w ? 1 : 0);
                       ^
  528.       bn_check_top(a);
  529.       return (1);

crypto/bn/bn_lib.c:527:5: 
  525.       a->neg = 0;
  526.       a->d[0] = w;
  527. >     a->top = (w ? 1 : 0);
  528.       bn_check_top(a);
  529.       return (1);

crypto/bn/bn_lib.c:529:5: 
  527.       a->top = (w ? 1 : 0);
  528.       bn_check_top(a);
  529. >     return (1);
  530.   }
  531.   

crypto/bn/bn_lib.c:530:1: return from a call to BN_set_word
  528.       bn_check_top(a);
  529.       return (1);
  530. > }
  531.   
  532.   BIGNUM *BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret)

test/bntest.c:1868:9: Taking false branch
1866.       BN_one(c);
1867.   
1868.       if (a_)
                ^
1869.           a = a_;
1870.       else {

test/bntest.c:1871:9: 
1869.           a = a_;
1870.       else {
1871. >         a = BN_new();
1872.           BN_bntest_rand(a, 200, 0, 0);
1873.           a->neg = rand_neg();

crypto/bn/bn_lib.c:276:1: start of procedure BN_new()
  274.   }
  275.   
  276. > BIGNUM *BN_new(void)
  277.   {
  278.       BIGNUM *ret;

crypto/bn/bn_lib.c:280:9: 
  278.       BIGNUM *ret;
  279.   
  280. >     if ((ret = OPENSSL_zalloc(sizeof(*ret))) == NULL) {
  281.           BNerr(BN_F_BN_NEW, ERR_R_MALLOC_FAILURE);
  282.           return (NULL);

crypto/mem.c:156:1: start of procedure CRYPTO_zalloc()
    154.   }
    155.   
    156. > void *CRYPTO_zalloc(size_t num, const char *file, int line)
    157.   {
    158.       void *ret = CRYPTO_malloc(num, file, line);

crypto/mem.c:158:5: 
    156.   void *CRYPTO_zalloc(size_t num, const char *file, int line)
    157.   {
    158. >     void *ret = CRYPTO_malloc(num, file, line);
    159.   
    160.       if (ret != NULL)

crypto/mem.c:119:1: start of procedure CRYPTO_malloc()
      117.   }
      118.   
      119. > void *CRYPTO_malloc(size_t num, const char *file, int line)
      120.   {
      121.       void *ret = NULL;

crypto/mem.c:121:5: 
      119.   void *CRYPTO_malloc(size_t num, const char *file, int line)
      120.   {
      121. >     void *ret = NULL;
      122.   
      123.       if (num <= 0)

crypto/mem.c:123:9: Taking false branch
      121.       void *ret = NULL;
      122.   
      123.       if (num <= 0)
                     ^
      124.           return NULL;
      125.   

crypto/mem.c:126:5: 
      124.           return NULL;
      125.   
      126. >     allow_customize = 0;
      127.   #ifndef OPENSSL_NO_CRYPTO_MDEBUG
      128.       if (call_malloc_debug) {

crypto/mem.c:136:5: 
      134.       }
      135.   #else
      136. >     (void)file;
      137.       (void)line;
      138.       ret = malloc(num);

crypto/mem.c:137:5: 
      135.   #else
      136.       (void)file;
      137. >     (void)line;
      138.       ret = malloc(num);
      139.   #endif

crypto/mem.c:138:5: 
      136.       (void)file;
      137.       (void)line;
      138. >     ret = malloc(num);
      139.   #endif
      140.   

crypto/mem.c:153:5: 
      151.   #endif
      152.   
      153. >     return ret;
      154.   }
      155.   

crypto/mem.c:154:1: return from a call to CRYPTO_malloc
      152.   
      153.       return ret;
      154. > }
      155.   
      156.   void *CRYPTO_zalloc(size_t num, const char *file, int line)

crypto/mem.c:160:9: Taking false branch
    158.       void *ret = CRYPTO_malloc(num, file, line);
    159.   
    160.       if (ret != NULL)
                   ^
    161.           memset(ret, 0, num);
    162.       return ret;

crypto/mem.c:162:5: 
    160.       if (ret != NULL)
    161.           memset(ret, 0, num);
    162. >     return ret;
    163.   }
    164.   

crypto/mem.c:163:1: return from a call to CRYPTO_zalloc
    161.           memset(ret, 0, num);
    162.       return ret;
    163. > }
    164.   
    165.   void *CRYPTO_realloc(void *str, size_t num, const char *file, int line)

crypto/bn/bn_lib.c:280:9: Taking true branch
  278.       BIGNUM *ret;
  279.   
  280.       if ((ret = OPENSSL_zalloc(sizeof(*ret))) == NULL) {
                 ^
  281.           BNerr(BN_F_BN_NEW, ERR_R_MALLOC_FAILURE);
  282.           return (NULL);

crypto/bn/bn_lib.c:281:9: Skipping ERR_put_error(): empty list of specs
  279.   
  280.       if ((ret = OPENSSL_zalloc(sizeof(*ret))) == NULL) {
  281.           BNerr(BN_F_BN_NEW, ERR_R_MALLOC_FAILURE);
                 ^
  282.           return (NULL);
  283.       }

crypto/bn/bn_lib.c:282:9: 
  280.       if ((ret = OPENSSL_zalloc(sizeof(*ret))) == NULL) {
  281.           BNerr(BN_F_BN_NEW, ERR_R_MALLOC_FAILURE);
  282. >         return (NULL);
  283.       }
  284.       ret->flags = BN_FLG_MALLOCED;

crypto/bn/bn_lib.c:287:1: return from a call to BN_new
  285.       bn_check_top(ret);
  286.       return (ret);
  287. > }
  288.   
  289.    BIGNUM *BN_secure_new(void)

test/bntest.c:1872:9: 
1870.       else {
1871.           a = BN_new();
1872. >         BN_bntest_rand(a, 200, 0, 0);
1873.           a->neg = rand_neg();
1874.       }

crypto/bn/bn_rand.c:209:1: start of procedure BN_bntest_rand()
  207.   }
  208.   
  209. > int BN_bntest_rand(BIGNUM *rnd, int bits, int top, int bottom)
  210.   {
  211.       return bnrand(2, rnd, bits, top, bottom);

crypto/bn/bn_rand.c:211:5: 
  209.   int BN_bntest_rand(BIGNUM *rnd, int bits, int top, int bottom)
  210.   {
  211. >     return bnrand(2, rnd, bits, top, bottom);
  212.   }
  213.   

crypto/bn/bn_rand.c:118:1: start of procedure bnrand()
    116.   #include <openssl/sha.h>
    117.   
    118. > static int bnrand(int pseudorand, BIGNUM *rnd, int bits, int top, int bottom)
    119.   {
    120.       unsigned char *buf = NULL;

crypto/bn/bn_rand.c:120:5: 
    118.   static int bnrand(int pseudorand, BIGNUM *rnd, int bits, int top, int bottom)
    119.   {
    120. >     unsigned char *buf = NULL;
    121.       int ret = 0, bit, bytes, mask;
    122.       time_t tim;

crypto/bn/bn_rand.c:121:5: 
    119.   {
    120.       unsigned char *buf = NULL;
    121. >     int ret = 0, bit, bytes, mask;
    122.       time_t tim;
    123.   

crypto/bn/bn_rand.c:124:9: Taking false branch
    122.       time_t tim;
    123.   
    124.       if (bits < 0 || (bits == 1 && top > 0)) {
                   ^
    125.           BNerr(BN_F_BNRAND, BN_R_BITS_TOO_SMALL);
    126.           return 0;

crypto/bn/bn_rand.c:124:22: Taking false branch
    122.       time_t tim;
    123.   
    124.       if (bits < 0 || (bits == 1 && top > 0)) {
                                ^
    125.           BNerr(BN_F_BNRAND, BN_R_BITS_TOO_SMALL);
    126.           return 0;

crypto/bn/bn_rand.c:129:9: Taking false branch
    127.       }
    128.   
    129.       if (bits == 0) {
                   ^
    130.           BN_zero(rnd);
    131.           return 1;

crypto/bn/bn_rand.c:134:5: 
    132.       }
    133.   
    134. >     bytes = (bits + 7) / 8;
    135.       bit = (bits - 1) % 8;
    136.       mask = 0xff << (bit + 1);

crypto/bn/bn_rand.c:135:5: 
    133.   
    134.       bytes = (bits + 7) / 8;
    135. >     bit = (bits - 1) % 8;
    136.       mask = 0xff << (bit + 1);
    137.   

crypto/bn/bn_rand.c:136:5: 
    134.       bytes = (bits + 7) / 8;
    135.       bit = (bits - 1) % 8;
    136. >     mask = 0xff << (bit + 1);
    137.   
    138.       buf = OPENSSL_malloc(bytes);

crypto/bn/bn_rand.c:138:5: 
    136.       mask = 0xff << (bit + 1);
    137.   
    138. >     buf = OPENSSL_malloc(bytes);
    139.       if (buf == NULL) {
    140.           BNerr(BN_F_BNRAND, ERR_R_MALLOC_FAILURE);

crypto/mem.c:119:1: start of procedure CRYPTO_malloc()
      117.   }
      118.   
      119. > void *CRYPTO_malloc(size_t num, const char *file, int line)
      120.   {
      121.       void *ret = NULL;

crypto/mem.c:121:5: 
      119.   void *CRYPTO_malloc(size_t num, const char *file, int line)
      120.   {
      121. >     void *ret = NULL;
      122.   
      123.       if (num <= 0)

crypto/mem.c:123:9: Taking true branch
      121.       void *ret = NULL;
      122.   
      123.       if (num <= 0)
                     ^
      124.           return NULL;
      125.   

crypto/mem.c:124:9: 
      122.   
      123.       if (num <= 0)
      124. >         return NULL;
      125.   
      126.       allow_customize = 0;

crypto/mem.c:154:1: return from a call to CRYPTO_malloc
      152.   
      153.       return ret;
      154. > }
      155.   
      156.   void *CRYPTO_zalloc(size_t num, const char *file, int line)

crypto/bn/bn_rand.c:139:9: Taking true branch
    137.   
    138.       buf = OPENSSL_malloc(bytes);
    139.       if (buf == NULL) {
                   ^
    140.           BNerr(BN_F_BNRAND, ERR_R_MALLOC_FAILURE);
    141.           goto err;

crypto/bn/bn_rand.c:140:9: Skipping ERR_put_error(): empty list of specs
    138.       buf = OPENSSL_malloc(bytes);
    139.       if (buf == NULL) {
    140.           BNerr(BN_F_BNRAND, ERR_R_MALLOC_FAILURE);
                   ^
    141.           goto err;
    142.       }

crypto/bn/bn_rand.c:193:2: 
    191.           goto err;
    192.       ret = 1;
    193. >  err:
    194.       OPENSSL_clear_free(buf, bytes);
    195.       bn_check_top(rnd);

crypto/bn/bn_rand.c:194:5: 
    192.       ret = 1;
    193.    err:
    194. >     OPENSSL_clear_free(buf, bytes);
    195.       bn_check_top(rnd);
    196.       return (ret);

crypto/mem.c:248:1: start of procedure CRYPTO_clear_free()
      246.   }
      247.   
      248. > void CRYPTO_clear_free(void *str, size_t num)
      249.   {
      250.       if (str == NULL)

crypto/mem.c:250:9: Taking true branch
      248.   void CRYPTO_clear_free(void *str, size_t num)
      249.   {
      250.       if (str == NULL)
                     ^
      251.           return;
      252.       if (num)

crypto/mem.c:251:9: 
      249.   {
      250.       if (str == NULL)
      251. >         return;
      252.       if (num)
      253.           OPENSSL_cleanse(str, num);

crypto/mem.c:255:1: return from a call to CRYPTO_clear_free
      253.           OPENSSL_cleanse(str, num);
      254.       CRYPTO_free(str);
      255. > }

crypto/bn/bn_rand.c:196:5: 
    194.       OPENSSL_clear_free(buf, bytes);
    195.       bn_check_top(rnd);
    196. >     return (ret);
    197.   }
    198.   

crypto/bn/bn_rand.c:197:1: return from a call to bnrand
    195.       bn_check_top(rnd);
    196.       return (ret);
    197. > }
    198.   
    199.   int BN_rand(BIGNUM *rnd, int bits, int top, int bottom)

crypto/bn/bn_rand.c:212:1: return from a call to BN_bntest_rand
  210.   {
  211.       return bnrand(2, rnd, bits, top, bottom);
  212. > }
  213.   
  214.   /* random number r:  0 <= r < range */

test/bntest.c:1873:9: 
1871.           a = BN_new();
1872.           BN_bntest_rand(a, 200, 0, 0);
1873. >         a->neg = rand_neg();
1874.       }
1875.       for (i = 0; i < num0; i++) {

test/bntest.c:2026:1: start of procedure rand_neg()
  2024.   }
  2025.   
  2026. > int rand_neg(void)
  2027.   {
  2028.       static unsigned int neg = 0;

test/bntest.c:2028:5: 
  2026.   int rand_neg(void)
  2027.   {
  2028. >     static unsigned int neg = 0;
  2029.       static int sign[8] = { 0, 0, 0, 1, 1, 0, 1, 1 };
  2030.   

test/bntest.c:2029:5: 
  2027.   {
  2028.       static unsigned int neg = 0;
  2029. >     static int sign[8] = { 0, 0, 0, 1, 1, 0, 1, 1 };
  2030.   
  2031.       return (sign[(neg++) % 8]);

test/bntest.c:2031:5: 
  2029.       static int sign[8] = { 0, 0, 0, 1, 1, 0, 1, 1 };
  2030.   
  2031. >     return (sign[(neg++) % 8]);
  2032.   }

test/bntest.c:2032:1: return from a call to rand_neg
  2030.   
  2031.       return (sign[(neg++) % 8]);
  2032. > }
