summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/process.cpp
diff options
context:
space:
mode:
authorGravatar Lioncash2018-12-11 10:08:10 -0500
committerGravatar Lioncash2018-12-11 10:08:13 -0500
commit5c72aa7c4c09dcf98e10504f1a43c279d47264d8 (patch)
treeb2e397a03cf3f604cba8b054beb294d913a2ad0f /src/core/hle/kernel/process.cpp
parentMerge pull request #1846 from lioncash/dir (diff)
downloadyuzu-5c72aa7c4c09dcf98e10504f1a43c279d47264d8.tar.gz
yuzu-5c72aa7c4c09dcf98e10504f1a43c279d47264d8.tar.xz
yuzu-5c72aa7c4c09dcf98e10504f1a43c279d47264d8.zip
patch_manager: Prevent use of a dangling pointer within PatchRomFS
fmt::format() returns a std::string instance by value, so calling .c_str() on it here is equivalent to doing: auto* ptr = std::string{}.c_str(); The data being pointed to isn't guaranteed to actually be valid anymore after that expression ends. Instead, we can just take the string as is, and provide the necessary formatting parameters.
Diffstat (limited to 'src/core/hle/kernel/process.cpp')
0 files changed, 0 insertions, 0 deletions