summaryrefslogtreecommitdiff
path: root/src/common/hex_util.cpp
diff options
context:
space:
mode:
authorGravatar Lioncash2018-10-03 02:13:49 -0400
committerGravatar Lioncash2018-10-03 02:13:51 -0400
commit024eec02a59d5902e3731a7120ebc97846b34991 (patch)
tree6a16ff9f6b33deaca6a4a70226d5527cc3570b54 /src/common/hex_util.cpp
parentsubmission_package: Correct location of null check within SetTicketKeys() (diff)
downloadyuzu-024eec02a59d5902e3731a7120ebc97846b34991.tar.gz
yuzu-024eec02a59d5902e3731a7120ebc97846b34991.tar.xz
yuzu-024eec02a59d5902e3731a7120ebc97846b34991.zip
submission_package: Avoid dangling std::string_view within SetTicketKeys()
GetName() returns a std::string by value, not by reference, so after the std::string_view is constructed, it's not well defined to actually execute any member functions of std::string_view that attempt to access the data, as the std::string has already been destroyed. Instead, we can just use a std::string and erase the last four characters.
Diffstat (limited to 'src/common/hex_util.cpp')
0 files changed, 0 insertions, 0 deletions