We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c33e597 commit c50b218Copy full SHA for c50b218
src/modules/rangeproof/rangeproof_impl.h
@@ -609,8 +609,10 @@ SECP256K1_INLINE static int secp256k1_rangeproof_verify_impl(const secp256k1_ecm
609
}
610
for(i = 0; i < rings - 1; i++) {
611
secp256k1_fe fe;
612
- secp256k1_fe_set_b32(&fe, &proof[offset]);
613
- secp256k1_ge_set_xquad(&c, &fe);
+ if (!secp256k1_fe_set_b32(&fe, &proof[offset]) ||
+ !secp256k1_ge_set_xquad(&c, &fe)) {
614
+ return 0;
615
+ }
616
if (signs[i]) {
617
secp256k1_ge_neg(&c, &c);
618
0 commit comments