disable file size sanity check when loading the wallet cache

This commit is contained in:
moneromooo-monero
2018-05-28 14:55:09 +01:00
parent a2cef8cba4
commit 5a412b7a3f
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -3772,7 +3772,7 @@ void wallet2::load(const std::string& wallet_, const epee::wipeable_string& pass
{
wallet2::cache_file_data cache_file_data;
std::string buf;
bool r = epee::file_io_utils::load_file_to_string(m_wallet_file, buf);
bool r = epee::file_io_utils::load_file_to_string(m_wallet_file, buf, std::numeric_limits<size_t>::max());
THROW_WALLET_EXCEPTION_IF(!r, error::file_read_error, m_wallet_file);
// try to read it as an encrypted cache