--- filezilla-3.46.3/src/interface/xmlfunctions.cpp.orig	2020-08-13 19:02:02.277000000 +0200
+++ filezilla-3.46.3/src/interface/xmlfunctions.cpp	2020-08-13 19:02:15.226000000 +0200
@@ -344,7 +344,7 @@
 				std::wstring encoding = GetTextAttribute(passElement, "encoding");
 
 				if (encoding == _T("base64")) {
-					std::string decoded = fz::base64_decode(passElement.child_value());
+					std::string decoded = fz::base64_decode_s(passElement.child_value());
 					pass = fz::to_wstring_from_utf8(decoded);
 				}
 				else if (encoding == _T("crypt")) {
--- filezilla-3.46.3/src/interface/wxfilesystem_blob_handler.cpp.orig	2020-08-13 19:01:27.818000000 +0200
+++ filezilla-3.46.3/src/interface/wxfilesystem_blob_handler.cpp	2020-08-13 19:00:14.175000000 +0200
@@ -46,7 +46,7 @@
 	}
 	else if (pos == 6) {
 		// base64
-		std::string data = fz::base64_decode(fz::to_utf8(location.Mid(pos + 1)));
+		std::string data = fz::base64_decode_s(fz::to_utf8(location.Mid(pos + 1)));
 		if (!data.empty()) {
 			buf = static_cast<unsigned char*>(malloc(data.size()));
 			if (buf) {
