crypto/dsa/dsa_lib.c:162: error: INTEGER_OVERFLOW_L2
  ([2, 2147483646] + [0, 2147483644]):signed32 by call to `ASN1_object_size`.
Showing all 14 steps of the trace


crypto/dsa/dsa_lib.c:160:9: Call
158.       buf[0] = 0xff;
159.   
160.       i = i2d_ASN1_INTEGER(&bs, NULL);
               ^
161.       i += i;                     /* r and s */
162.       ret = ASN1_object_size(1, i, V_ASN1_SEQUENCE);

crypto/asn1/tasn_typ.c:29:1: Call
  27.   
  28.   IMPLEMENT_ASN1_STRING_FUNCTIONS(ASN1_OCTET_STRING)
  29. > IMPLEMENT_ASN1_STRING_FUNCTIONS(ASN1_INTEGER)
  30.   IMPLEMENT_ASN1_STRING_FUNCTIONS(ASN1_ENUMERATED)
  31.   IMPLEMENT_ASN1_STRING_FUNCTIONS(ASN1_BIT_STRING)

crypto/asn1/tasn_enc.c:44:12: Call
    42.   int ASN1_item_i2d(ASN1_VALUE *val, unsigned char **out, const ASN1_ITEM *it)
    43.   {
    44.       return asn1_item_flags_i2d(val, out, it, 0);
                     ^
    45.   }
    46.   

crypto/asn1/tasn_enc.c:65:13: Assignment
      63.           buf = OPENSSL_malloc(len);
      64.           if (buf == NULL)
      65.               return -1;
                        ^
      66.           p = buf;
      67.           ASN1_item_ex_i2d(&val, &p, it, -1, flags);

crypto/asn1/tasn_enc.c:44:5: Assignment
    42.   int ASN1_item_i2d(ASN1_VALUE *val, unsigned char **out, const ASN1_ITEM *it)
    43.   {
    44.       return asn1_item_flags_i2d(val, out, it, 0);
              ^
    45.   }
    46.   

crypto/asn1/tasn_typ.c:29:1: Assignment
  27.   
  28.   IMPLEMENT_ASN1_STRING_FUNCTIONS(ASN1_OCTET_STRING)
  29. > IMPLEMENT_ASN1_STRING_FUNCTIONS(ASN1_INTEGER)
  30.   IMPLEMENT_ASN1_STRING_FUNCTIONS(ASN1_ENUMERATED)
  31.   IMPLEMENT_ASN1_STRING_FUNCTIONS(ASN1_BIT_STRING)

crypto/dsa/dsa_lib.c:160:5: Assignment
158.       buf[0] = 0xff;
159.   
160.       i = i2d_ASN1_INTEGER(&bs, NULL);
           ^
161.       i += i;                     /* r and s */
162.       ret = ASN1_object_size(1, i, V_ASN1_SEQUENCE);

crypto/dsa/dsa_lib.c:161:5: Assignment
159.   
160.       i = i2d_ASN1_INTEGER(&bs, NULL);
161.       i += i;                     /* r and s */
           ^
162.       ret = ASN1_object_size(1, i, V_ASN1_SEQUENCE);
163.       return ret;

crypto/dsa/dsa_lib.c:162:11: Call
160.       i = i2d_ASN1_INTEGER(&bs, NULL);
161.       i += i;                     /* r and s */
162.       ret = ASN1_object_size(1, i, V_ASN1_SEQUENCE);
                 ^
163.       return ret;
164.   }

crypto/asn1/asn1_lib.c:215:1: <LHS trace>
213.   }
214.   
215. > int ASN1_object_size(int constructed, int length, int tag)
216.   {
217.       int ret = 1;

crypto/asn1/asn1_lib.c:215:1: Parameter `length`
  213.   }
  214.   
  215. > int ASN1_object_size(int constructed, int length, int tag)
  216.   {
  217.       int ret = 1;

crypto/asn1/asn1_lib.c:215:1: <RHS trace>
213.   }
214.   
215. > int ASN1_object_size(int constructed, int length, int tag)
216.   {
217.       int ret = 1;

crypto/asn1/asn1_lib.c:215:1: Parameter `length`
  213.   }
  214.   
  215. > int ASN1_object_size(int constructed, int length, int tag)
  216.   {
  217.       int ret = 1;

crypto/asn1/asn1_lib.c:240:5: Binary operation: ([2, 2147483646] + [0, 2147483644]):signed32 by call to `ASN1_object_size` 
  238.       if (ret >= INT_MAX - length)
  239.           return -1;
  240.       return ret + length;
             ^
  241.   }
  242.   
