goto err;
}
while(blsize--)
- tmp[i++] = BN_div_word(bl, 0x80L);
+ tmp[i++] = (unsigned char)BN_div_word(bl, 0x80L);
}
else
{
return -1;
i2t_ASN1_OBJECT(p,i + 1,a);
}
+ if (i <= 0)
+ return BIO_write(bp, "<INVALID>", 9);
BIO_write(bp,p,i);
if (p != buf)
OPENSSL_free(p);
return ret;
err:
ASN1err(ASN1_F_D2I_ASN1_OBJECT,i);
- if ((ret != NULL) && ((a == NULL) || (*a != ret)))
- ASN1_OBJECT_free(ret);
return(NULL);
}
ASN1_OBJECT *c2i_ASN1_OBJECT(ASN1_OBJECT **a, const unsigned char **pp,