summaryrefslogtreecommitdiff
path: root/src/core/arm/arm_interface.cpp
diff options
context:
space:
mode:
authorGravatar Lioncash2022-12-05 21:26:00 -0500
committerGravatar Lioncash2022-12-05 21:31:34 -0500
commite7f9f58fa408ac89ed1ce709494d84090b63bff0 (patch)
treefb5caf9dc17fe8639d5a9138727f1adf3c8961fc /src/core/arm/arm_interface.cpp
parentMerge pull request #6833 from abouvier/unbundle (diff)
downloadyuzu-e7f9f58fa408ac89ed1ce709494d84090b63bff0.tar.gz
yuzu-e7f9f58fa408ac89ed1ce709494d84090b63bff0.tar.xz
yuzu-e7f9f58fa408ac89ed1ce709494d84090b63bff0.zip
reporter: Eliminate undefined behavior in SaveErrorReport
The optionals are unconditionally dereferenced when setting the custom error text, and in a few cases this function is called using the default value of the optionals. This means we'd be dereferencing uninitialized storage. Since they're used unconditionally, we can use value_or to set a default when storage is uninitialized.
Diffstat (limited to 'src/core/arm/arm_interface.cpp')
0 files changed, 0 insertions, 0 deletions