citra/src
Lioncash 5ddd382a9b kernel/svc: Do nothing if svcOutputDebugString's length is <= 0
While likely very uncommon, this sanitizes the input and does nothing in
the event of the length being equal to or less than zero, avoiding
constructing a std::string when there's no need to. It also avoids an
out-of-memory scenario, as a negative value would wrap around to its
equivalent unsigned representation in std::string's constructor.

e.g. If someone was silly and a length of -1 was specified, this would
make a string with a length of 0xFFFFFFFFFFFFFFFF on a 64-bit platform,
which will obviously eventually fail due to the allocation being way too
large.
2018-09-17 19:52:53 -04:00
..
audio_core audio_core/sink_details: Change std::string parameter into std::string_view 2018-09-15 15:48:24 +02:00
citra
citra_qt Merge pull request #4231 from CaptV0rt3x/port-1336 2018-09-17 22:37:40 +08:00
common
core kernel/svc: Do nothing if svcOutputDebugString's length is <= 0 2018-09-17 19:52:53 -04:00
dedicated_room
input_common
network
tests
video_core
web_service
.clang-format
CMakeLists.txt