diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2021-06-24 14:13:19 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2021-06-24 14:13:19 -0500 |
| commit | 14a1b89122406a937d7e0bc3712d6fc8ae675b64 (patch) | |
| tree | 9e4eb8746a1b4985aecb01936b8475cf49975d38 /tests/unit_tests/tx_proof.cpp | |
| parent | 4f08d52dfacb62469b44c1ab68a37852011c8e3b (diff) | |
| parent | 4251cc0b4dd877e5a9619d557f7697fa184c0acd (diff) | |
| download | monzero-core-14a1b89122406a937d7e0bc3712d6fc8ae675b64.tar.gz monzero-core-14a1b89122406a937d7e0bc3712d6fc8ae675b64.tar.xz monzero-core-14a1b89122406a937d7e0bc3712d6fc8ae675b64.zip | |
Merge pull request #7752
4251cc0 unit_tests: check for ge_frombytes_vartime failure (moneromooo-monero)
67b97a5 easylogging++: do not delete uninitialized objects (moneromooo-monero)
7b6d959 trezor: fix potential use of uninitialized memory (moneromooo-monero)
Diffstat (limited to 'tests/unit_tests/tx_proof.cpp')
| -rw-r--r-- | tests/unit_tests/tx_proof.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit_tests/tx_proof.cpp b/tests/unit_tests/tx_proof.cpp index c5d06bc68..0adb8713e 100644 --- a/tests/unit_tests/tx_proof.cpp +++ b/tests/unit_tests/tx_proof.cpp @@ -58,14 +58,14 @@ TEST(tx_proof, prove_verify_v2) // R_B = rB crypto::public_key R_B; ge_p3 B_p3; - ge_frombytes_vartime(&B_p3,&B); + ASSERT_EQ(ge_frombytes_vartime(&B_p3,&B), 0); ge_p2 R_B_p2; ge_scalarmult(&R_B_p2, &unwrap(r), &B_p3); ge_tobytes(&R_B, &R_B_p2); // R_G = rG crypto::public_key R_G; - ge_frombytes_vartime(&B_p3,&B); + ASSERT_EQ(ge_frombytes_vartime(&B_p3,&B), 0); ge_p3 R_G_p3; ge_scalarmult_base(&R_G_p3, &unwrap(r)); ge_p3_tobytes(&R_G, &R_G_p3); @@ -73,7 +73,7 @@ TEST(tx_proof, prove_verify_v2) // D = rA crypto::public_key D; ge_p3 A_p3; - ge_frombytes_vartime(&A_p3,&A); + ASSERT_EQ(ge_frombytes_vartime(&A_p3,&A), 0); ge_p2 D_p2; ge_scalarmult(&D_p2, &unwrap(r), &A_p3); ge_tobytes(&D, &D_p2); |
