citra/src/core/hle
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
..
applets Prefix all size_t with std:: 2018-09-06 16:03:28 -04:00
kernel kernel/svc: Do nothing if svcOutputDebugString's length is <= 0 2018-09-17 19:52:53 -04:00
service Prefix all size_t with std:: 2018-09-06 16:03:28 -04:00
config_mem.cpp Update the entire application to use the new clang format style 2018-03-09 10:54:43 -07:00
config_mem.h Update the entire application to use the new clang format style 2018-03-09 10:54:43 -07:00
function_wrappers.h HLE: Move SVC handlers to the Kernel namespace 2017-12-09 20:32:58 -08:00
ipc.h ipc: fix typo 2018-09-13 11:51:08 -05:00
ipc_helpers.h Prefix all size_t with std:: 2018-09-06 16:03:28 -04:00
lock.cpp hle/lock: Remove #pragma once in cpp file 2017-10-21 13:59:14 +01:00
lock.h Use recursive_mutex instead of mutex to fix #2902 2017-08-29 20:39:55 +12:00
result.h ResultVal: Remove MoveFrom() 2017-06-18 19:03:15 -07:00
romfs.cpp RomFSFile: Default constructor 2018-07-26 13:10:56 +02:00
romfs.h RomFSFile: Default constructor 2018-07-26 13:10:56 +02:00
shared_page.cpp Add system time configuration (#4043) 2018-08-26 11:47:45 -06:00
shared_page.h Add system time configuration (#4043) 2018-08-26 11:47:45 -06:00