aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorRayyan Ansari <rayyan@ansari.sh>2023-11-05 20:21:16 +0000
committerRayyan Ansari <rayyan@ansari.sh>2023-11-05 20:21:16 +0000
commit0e4d0823617240345cc8ac5f3703636d041c2df3 (patch)
tree1256c653c8f29f26d9214195ca9479ffab00c85e /cmake
parentdf571078cfafcd0b98f3b84b84e44c97ac8ff7cf (diff)
ROMManager: initialise filedata to nullptr
If a user manages to open a file as a ROM that is greater than 1 GiB, it will cause a segmentation fault (a crash) in LoadROM due to a delete being called on an uninitialised pointer, which is undefined behaviour. Initialise filedata to nullptr to prevent this, as deleting a null pointer is defined as a no-op.
Diffstat (limited to 'cmake')
0 files changed, 0 insertions, 0 deletions