engines/e_atalla.c:498: error: INTEGER_OVERFLOW_L2
  ([0, `a->top`] - 1):unsigned64 by call to `BN_bn2bin`.
Showing all 9 steps of the trace


engines/e_atalla.c:444:1: Parameter `a->top`
442.   	}
443.   
444. > static int atalla_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
445.   			const BIGNUM *m, BN_CTX *ctx)
446.   	{

engines/e_atalla.c:498:57: Call
496.   	memset(argument->d, 0, numbytes);
497.   	memset(result->d, 0, numbytes);
498.   	BN_bn2bin(a, (unsigned char *)argument->d + numbytes - BN_num_bytes(a));
                                                               ^
499.   	/* Perform the operation */
500.   	if(p_Atalla_RSAPrivateKeyOpFn(&keydata, (unsigned char *)result->d,

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;

engines/e_atalla.c:498:2: Call
496.   	memset(argument->d, 0, numbytes);
497.   	memset(result->d, 0, numbytes);
498.   	BN_bn2bin(a, (unsigned char *)argument->d + numbytes - BN_num_bytes(a));
        ^
499.   	/* Perform the operation */
500.   	if(p_Atalla_RSAPrivateKeyOpFn(&keydata, (unsigned char *)result->d,

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, a->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.   
