You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

CVE-2021-3712.patch 616 B

1234567891011121314151617
  1. diff --git a/crypto/ec/ec_asn1.c b/crypto/ec/ec_asn1.c
  2. index 7b7c75ce84..e497a25909 100644
  3. --- a/crypto/ec/ec_asn1.c
  4. +++ b/crypto/ec/ec_asn1.c
  5. @@ -761,7 +761,10 @@ EC_GROUP *EC_GROUP_new_from_ecparameters(const ECPARAMETERS *params)
  6. ret->seed_len = params->curve->seed->length;
  7. }
  8. - if (!params->order || !params->base || !params->base->data) {
  9. + if (params->order == NULL
  10. + || params->base == NULL
  11. + || params->base->data == NULL
  12. + || params->base->length == 0) {
  13. ECerr(EC_F_EC_GROUP_NEW_FROM_ECPARAMETERS, EC_R_ASN1_ERROR);
  14. goto err;
  15. }