crypto/bn/bn_prime.c:387: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned64 by call to `BN_mod_word`.
Showing all 7 steps of the trace


crypto/bn/bn_prime.c:384:7: Call
382.   
383.   again:
384.   	if (!BN_rand(rnd,bits,1,1)) return(0);
             ^
385.   	/* we now have a random number 'rand' to test. */
386.   	for (i=1; i<NUMPRIMES; i++)

crypto/bn/bn_rand.c:213:9: Call
  211.   int     BN_rand(BIGNUM *rnd, size_t bits, int top, int bottom)
  212.   	{
  213.   	return bnrand(0, rnd, bits, top, bottom);
                 ^
  214.   	}
  215.   

crypto/bn/bn_rand.c:118:1: Parameter `rnd->top`
    116.   #include <openssl/rand.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_prime.c:387:20: Call
385.   	/* we now have a random number 'rand' to test. */
386.   	for (i=1; i<NUMPRIMES; i++)
387.   		mods[i]=(prime_t)BN_mod_word(rnd,(BN_ULONG)primes[i]);
                          ^
388.   	maxdelta=BN_MASK2 - primes[NUMPRIMES-1];
389.   	delta=0;

crypto/bn/bn_word.c:63:1: <LHS trace>
61.   #include "bn_lcl.h"
62.   
63. > BN_ULONG BN_mod_word(const BIGNUM *a, BN_ULONG w)
64.   	{
65.   #ifndef BN_LLONG

crypto/bn/bn_word.c:63:1: Parameter `a->top`
  61.   #include "bn_lcl.h"
  62.   
  63. > BN_ULONG BN_mod_word(const BIGNUM *a, BN_ULONG w)
  64.   	{
  65.   #ifndef BN_LLONG

crypto/bn/bn_word.c:77:7: Binary operation: ([0, +oo] - 1):unsigned64 by call to `BN_mod_word` 
  75.   	bn_check_top(a);
  76.   	w&=BN_MASK2;
  77.   	for (i=a->top-1; i>=0; i--)
              ^
  78.   		{
  79.   #ifndef BN_LLONG
