crypto/jpake/jpake.c:156: error: INTEGER_OVERFLOW_L2
  ([0, `bn->top`] - 1):unsigned64 by call to `BN_bn2bin`.
Showing all 9 steps of the trace


crypto/jpake/jpake.c:150:1: Parameter `bn->top`
148.       }
149.   
150. > static void hashbn(SHA_CTX *sha, const BIGNUM *bn)
151.       {
152.       size_t l = BN_num_bytes(bn);

crypto/jpake/jpake.c:152:16: Call
150.   static void hashbn(SHA_CTX *sha, const BIGNUM *bn)
151.       {
152.       size_t l = BN_num_bytes(bn);
                      ^
153.       unsigned char *bin = OPENSSL_malloc(l);
154.   

crypto/bn/bn_lib.c:248:1: Parameter `a->top`
  246.   	}
  247.   
  248. > int BN_num_bits(const BIGNUM *a)
  249.   	{
  250.   	int i = a->top - 1;

crypto/jpake/jpake.c:156:5: Call
154.   
155.       hashlength(sha, l);
156.       BN_bn2bin(bn, bin);
           ^
157.       SHA1_Update(sha, bin, l);
158.       OPENSSL_free(bin);

crypto/bn/bn_lib.c:641:1: Parameter `a->top`
  639.   
  640.   /* ignore negative */
  641. > int BN_bn2bin(const BIGNUM *a, unsigned char *to)
  642.   	{
  643.   	int n,i;

crypto/bn/bn_lib.c:647:6: Call
  645.   
  646.   	bn_check_top(a);
  647.   	n=i=BN_num_bytes(a);
              ^
  648.   	while (i--)
  649.   		{

crypto/bn/bn_lib.c:248:1: <LHS trace>
246.   	}
247.   
248. > int BN_num_bits(const BIGNUM *a)
249.   	{
250.   	int i = a->top - 1;

crypto/bn/bn_lib.c:248:1: Parameter `a->top`
    246.   	}
    247.   
    248. > int BN_num_bits(const BIGNUM *a)
    249.   	{
    250.   	int i = a->top - 1;

crypto/bn/bn_lib.c:250:2: Binary operation: ([0, bn->top] - 1):unsigned64 by call to `BN_bn2bin` 
    248.   int BN_num_bits(const BIGNUM *a)
    249.   	{
    250.   	int i = a->top - 1;
            ^
    251.   	bn_check_top(a);
    252.   
