From a2c2b042b252127f3cd3fe5d43966478dafe6fe6 Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Mon, 14 Aug 2023 16:04:20 -0700 Subject: [PATCH] CodeSizeValidation: Fixes nullptr dereference --- Source/Tools/CodeSizeValidation/Main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Tools/CodeSizeValidation/Main.cpp b/Source/Tools/CodeSizeValidation/Main.cpp index 5422cf904..23550bd42 100644 --- a/Source/Tools/CodeSizeValidation/Main.cpp +++ b/Source/Tools/CodeSizeValidation/Main.cpp @@ -382,7 +382,7 @@ int main(int argc, char **argv, char **const envp) { // Enable block disassembly. FEXCore::Config::EraseSet(FEXCore::Config::CONFIG_DISASSEMBLE, fextl::fmt::format("{}", static_cast(FEXCore::Config::Disassemble::BLOCKS | FEXCore::Config::Disassemble::STATS))); // Choose bitness. - FEXCore::Config::EraseSet(FEXCore::Config::CONFIG_IS64BIT_MODE, TestHeaderData->Bitness == 64 ? "1" : 0); + FEXCore::Config::EraseSet(FEXCore::Config::CONFIG_IS64BIT_MODE, TestHeaderData->Bitness == 64 ? "1" : "0"); // Host feature override. Only supports overriding SVE width. enum HostFeatures {