From abde50f16205f8c24a59530c310a845421f14ca9 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Thu, 15 Nov 2018 15:58:31 -0800 Subject: [PATCH] fs.mitm: wipe CAL0 backup from memory when done. --- stratosphere/fs_mitm/source/fsmitm_utils.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/stratosphere/fs_mitm/source/fsmitm_utils.cpp b/stratosphere/fs_mitm/source/fsmitm_utils.cpp index c80c8fe9c..7e47f0d60 100644 --- a/stratosphere/fs_mitm/source/fsmitm_utils.cpp +++ b/stratosphere/fs_mitm/source/fsmitm_utils.cpp @@ -120,6 +120,7 @@ void Utils::InitializeSdThreadFunc(void *args) { } /* NOTE: g_cal0_file is intentionally not closed here. This prevents any other process from opening it. */ + memset(g_cal0_backup, 0, sizeof(g_cal0_backup)); } }