FEX/Source/Common
Ryan Houdek 30e3d795da FEX: Consolidate JSON allocators and fix 3691
Fixes #3691

We weren't checking if the file was empty before using its `at` function
member. This was causing an early crash if the config file existed but
was empty.

Consolidates the three locations that copy and pasted the json allocator
tools and adds an empty check for all of them.

Also adds two missing checks to the ThunksDB handler that could have
resulted in the same crash if ThunksDB was an empty file.
2024-06-18 13:31:25 -04:00
..
cpp-optparse@eab4212ae8 cpp-optparse: Update to latest optparse 2023-04-10 18:12:18 -07:00
ArgumentLoader.cpp Whole-tree reformat 2024-04-12 16:26:02 +02:00
ArgumentLoader.h Whole-tree reformat 2024-04-12 16:26:02 +02:00
CMakeLists.txt FEX: Consolidate JSON allocators and fix 3691 2024-06-18 13:31:25 -04:00
Config.cpp FEX: Consolidate JSON allocators and fix 3691 2024-06-18 13:31:25 -04:00
Config.h FEXLoader: Cleanup FD extraction from environment variables 2024-05-29 18:47:28 -07:00
EnvironmentLoader.cpp Whole-tree reformat 2024-04-12 16:26:02 +02:00
EnvironmentLoader.h Whole-tree reformat 2024-04-12 16:26:02 +02:00
FDUtils.h Whole-tree reformat 2024-04-12 16:26:02 +02:00
FEXServerClient.cpp Whole-tree reformat 2024-04-12 16:26:02 +02:00
FEXServerClient.h FEXLogging: Changes representation of timestamp 2024-05-27 23:36:58 -07:00
FileFormatCheck.cpp Whole-tree reformat 2024-04-12 16:26:02 +02:00
FileFormatCheck.h Whole-tree reformat 2024-04-12 16:26:02 +02:00
JSONPool.cpp FEX: Consolidate JSON allocators and fix 3691 2024-06-18 13:31:25 -04:00
JSONPool.h FEX: Consolidate JSON allocators and fix 3691 2024-06-18 13:31:25 -04:00
StringUtil.cpp Whole-tree reformat 2024-04-12 16:26:02 +02:00
StringUtil.h Whole-tree reformat 2024-04-12 16:26:02 +02:00