apps/ts.c:878: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned32 by call to `ASN1_INTEGER_to_BN`.
Showing all 14 steps of the trace


apps/ts.c:862:19: Call
860.       BIGNUM *bn = NULL;
861.   
862.       if ((serial = ASN1_INTEGER_new()) == NULL)
                         ^
863.           goto err;
864.   

crypto/asn1/tasn_typ.c:78:1: Call
  76.   
  77.   IMPLEMENT_ASN1_STRING_FUNCTIONS(ASN1_OCTET_STRING)
  78. > IMPLEMENT_ASN1_STRING_FUNCTIONS(ASN1_INTEGER)
  79.   IMPLEMENT_ASN1_STRING_FUNCTIONS(ASN1_ENUMERATED)
  80.   IMPLEMENT_ASN1_STRING_FUNCTIONS(ASN1_BIT_STRING)

crypto/asn1/asn1_lib.c:356:5: Assignment
    354.           return (NULL);
    355.       }
    356.       ret->length = 0;
               ^
    357.       ret->type = type;
    358.       ret->data = NULL;

apps/ts.c:873:14: Call
871.       } else {
872.           char buf[1024];
873.           if (!a2i_ASN1_INTEGER(in, serial, buf, sizeof(buf))) {
                    ^
874.               BIO_printf(bio_err, "unable to load number from %s\n",
875.                          serialfile);

crypto/asn1/f_int.c:102:1: Parameter `bs->length`
  100.   }
  101.   
  102. > int a2i_ASN1_INTEGER(BIO *bp, ASN1_INTEGER *bs, char *buf, int size)
  103.   {
  104.       int i, j, k, m, n, again, bufsize;

apps/ts.c:878:19: Call
876.               goto err;
877.           }
878.           if ((bn = ASN1_INTEGER_to_BN(serial, NULL)) == NULL)
                         ^
879.               goto err;
880.           ASN1_INTEGER_free(serial);

crypto/asn1/a_int.c:627:1: Parameter `ai->length`
  625.   }
  626.   
  627. > BIGNUM *ASN1_INTEGER_to_BN(const ASN1_INTEGER *ai, BIGNUM *bn)
  628.   {
  629.       return asn1_string_to_bn(ai, bn, V_ASN1_INTEGER);

crypto/asn1/a_int.c:629:12: Call
  627.   BIGNUM *ASN1_INTEGER_to_BN(const ASN1_INTEGER *ai, BIGNUM *bn)
  628.   {
  629.       return asn1_string_to_bn(ai, bn, V_ASN1_INTEGER);
                    ^
  630.   }
  631.   

crypto/asn1/a_int.c:563:1: Parameter `ai->length`
    561.   }
    562.   
    563. > static BIGNUM *asn1_string_to_bn(const ASN1_INTEGER *ai, BIGNUM *bn,
    564.                                    int itype)
    565.   {

crypto/asn1/a_int.c:573:11: Call
    571.       }
    572.   
    573.       ret = BN_bin2bn(ai->data, ai->length, bn);
                     ^
    574.       if (ret == 0) {
    575.           ASN1err(ASN1_F_ASN1_STRING_TO_BN, ASN1_R_BN_LIB);

crypto/bn/bn_lib.c:543:1: <LHS trace>
541.   }
542.   
543. > BIGNUM *BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret)
544.   {
545.       unsigned int i, m;

crypto/bn/bn_lib.c:543:1: Parameter `len`
      541.   }
      542.   
      543. > BIGNUM *BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret)
      544.   {
      545.       unsigned int i, m;

crypto/bn/bn_lib.c:556:5: Assignment
      554.       bn_check_top(ret);
      555.       l = 0;
      556.       n = len;
                 ^
      557.       if (n == 0) {
      558.           ret->top = 0;

crypto/bn/bn_lib.c:561:5: Binary operation: ([0, +oo] - 1):unsigned32 by call to `ASN1_INTEGER_to_BN` 
      559.           return (ret);
      560.       }
      561.       i = ((n - 1) / BN_BYTES) + 1;
                 ^
      562.       m = ((n - 1) % (BN_BYTES));
      563.       if (bn_wexpand(ret, (int)i) == NULL) {
