diff --git a/src/test/app/MPToken_test.cpp b/src/test/app/MPToken_test.cpp index 7d0126bd65..a10de70f13 100644 --- a/src/test/app/MPToken_test.cpp +++ b/src/test/app/MPToken_test.cpp @@ -571,7 +571,8 @@ class MPToken_test : public beast::unit_test::suite .err = temINVALID_FLAG}); if (!features[featureSingleAssetVault] && - !features[featureDynamicMPT]) + !features[featureDynamicMPT] && + !features[featureConfidentialTransfer]) { // test invalid flags - nothing is being changed mptAlice.set( diff --git a/src/test/jtx/impl/mpt.cpp b/src/test/jtx/impl/mpt.cpp index cc8f7f51e1..1cc2fcba40 100644 --- a/src/test/jtx/impl/mpt.cpp +++ b/src/test/jtx/impl/mpt.cpp @@ -18,6 +18,7 @@ ripple::Buffer generatePlaceholderCiphertext() { Buffer buf(ecGamalEncryptedTotalLength); + std::memset(buf.data(), 0, ecGamalEncryptedTotalLength); buf.data()[0] = 0x02; buf.data()[ecGamalEncryptedLength] = 0x02;