From 712a4960a5454dbed2f4d4010f1c9183d8a25259 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 19 Apr 2021 12:30:31 -0400 Subject: [PATCH] arp: Prevent uninitialized read of launch member variable If anything happened to call arp functions in the wrong order and called IRegistrar's Issue function before SetApplicationLaunchProperty, we'd read from an uninitialized ApplicationLaunchProperty instance. Instead, we can always initialize it so if this does happen, then the outcome of doing such a thing is at least consistently reproducible. --- src/core/hle/service/glue/arp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/hle/service/glue/arp.cpp b/src/core/hle/service/glue/arp.cpp index 322125135f..e6d9d1b24a 100644 --- a/src/core/hle/service/glue/arp.cpp +++ b/src/core/hle/service/glue/arp.cpp @@ -240,7 +240,7 @@ private: std::function)> issue_process_id; bool issued = false; - ApplicationLaunchProperty launch; + ApplicationLaunchProperty launch{}; std::vector control; };