X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/e0e0d90ebff497686991a933ae2f7db24e7d8e0f..07691282a056c4efea71e1e505527601e8cc166b:/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; }