Merge pull request #5299

4ee15655 wallet_rpc_server: fix buffer read overflow in string assignment (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2019-04-01 17:24:33 +02:00
commit b09f1bdb8f
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -3522,7 +3522,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)
{