X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/e0e0d90ebff497686991a933ae2f7db24e7d8e0f..dd5fb164cf5b32c462296bc65e289e100f74b59a:/OSX/libsecurity_cryptkit/lib/feeECDSA.c diff --git a/OSX/libsecurity_cryptkit/lib/feeECDSA.c b/OSX/libsecurity_cryptkit/lib/feeECDSA.c index cbed7a4e..57736073 100644 --- a/OSX/libsecurity_cryptkit/lib/feeECDSA.c +++ b/OSX/libsecurity_cryptkit/lib/feeECDSA.c @@ -460,7 +460,10 @@ feeReturn feeECDSAVerify(const unsigned char *sigData, * Verify that c and d are within [1,group_order-1] */ if((gcompg(cp->cOrderPlus, c) != 1) || (gcompg(cp->cOrderPlus, d) != 1) || - isZero(c) || isZero(d)) { + isZero(c) || isZero(d)) + { + returnGiant(c); + returnGiant(d); return FR_InvalidSignature; }