wallet_rpc_server: fix buffer read overflow in string assignment

This commit is contained in:
moneromooo-monero 2019-03-15 18:29:59 +00:00
parent c88e992104
commit 4ee156556d
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

View File

@ -3331,7 +3331,7 @@ namespace tools
er.message = "Failed to encode seed";
return false;
}
res.seed = electrum_words.data();
res.seed = std::string(electrum_words.data(), electrum_words.size());
if (!wal)
{