If servers.conf contained a non-integer port value, std::stoi(val) threw std::invalid_argument crashing the application on startup.
servers.conf
std::stoi(val)
std::invalid_argument
// BEFORE: else if (key == "port") current.port = std::stoi(val); // AFTER: else if (key == "port") { try { current.port = std::stoi(val); } catch (...) { current.port = 22; } }
Status: Fixed in commit 4a2b2ea
4a2b2ea
No dependencies set.
The note is not visible to the blocked user.
Bug
If
servers.confcontained a non-integer port value,std::stoi(val)threwstd::invalid_argumentcrashing the application on startup.Fix
Status: Fixed in commit
4a2b2ea