From a3a2cb682ee3b24b926648d86c143a5d1c1f28bc Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Fri, 10 Jul 2020 13:58:54 +0100 Subject: [PATCH] Truncate service names to 8 chars maximum --- app/src/main/cpp/skyline/services/sm/IUserInterface.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/cpp/skyline/services/sm/IUserInterface.cpp b/app/src/main/cpp/skyline/services/sm/IUserInterface.cpp index 6bf06d50..edfa4866 100644 --- a/app/src/main/cpp/skyline/services/sm/IUserInterface.cpp +++ b/app/src/main/cpp/skyline/services/sm/IUserInterface.cpp @@ -13,6 +13,7 @@ namespace skyline::service::sm { void IUserInterface::GetService(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) { std::string serviceName(request.PopString()); + serviceName.resize(std::min(8UL, serviceName.size())); if (serviceName.empty()) { response.errorCode = constant::status::ServiceInvName;