citra/src/core/hle/kernel
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
..
address_arbiter.cpp log: replace all NGLOG with LOG 2018-06-29 14:18:07 +03:00
address_arbiter.h kernel: Move object class to its own source files 2018-08-23 17:31:59 +02:00
client_port.cpp Merge pull request #4121 from FearlessTobi/port-894 2018-08-26 00:02:33 +01:00
client_port.h Merge pull request #4121 from FearlessTobi/port-894 2018-08-26 00:02:33 +01:00
client_session.cpp Update the entire application to use the new clang format style 2018-03-09 10:54:43 -07:00
client_session.h kernel: Move object class to its own source files 2018-08-23 17:31:59 +02:00
errors.h Kernel/IPC: Added a function to translate the IPC command buffer from one process to another. 2017-11-06 10:46:12 -05:00
event.cpp kernel: Move object class to its own source files 2018-08-23 17:31:59 +02:00
event.h Merge pull request #4121 from FearlessTobi/port-894 2018-08-26 00:02:33 +01:00
handle_table.cpp Prefix all size_t with std:: 2018-09-06 16:03:28 -04:00
handle_table.h Prefix all size_t with std:: 2018-09-06 16:03:28 -04:00
hle_ipc.cpp Prefix all size_t with std:: 2018-09-06 16:03:28 -04:00
hle_ipc.h Prefix all size_t with std:: 2018-09-06 16:03:28 -04:00
ipc.cpp Prefix all size_t with std:: 2018-09-06 16:03:28 -04:00
ipc.h Kernel/IPC: Partially implement MappedBuffer translation. 2018-01-23 08:27:00 -05:00
kernel.cpp kernel/object: Tighten object against data races 2018-08-31 00:14:48 +02:00
kernel.h kernel: Move object class to its own source files 2018-08-23 17:31:59 +02:00
memory.cpp Add system time configuration (#4043) 2018-08-26 11:47:45 -06:00
memory.h Kernel/Memory: Changed GetPhysicalPointer so that it doesn't go through the current process' page table to obtain a pointer. 2017-09-15 14:26:13 -05:00
mutex.cpp kernel: Move object class to its own source files 2018-08-23 17:31:59 +02:00
mutex.h Kernel/SVC: Don't let svcReleaseMutex release a mutex owned by another thread. 2017-11-04 10:05:18 -05:00
object.cpp kernel: Move object class to its own source files 2018-08-23 17:31:59 +02:00
object.h kernel/object: Tighten object against data races 2018-08-31 00:14:48 +02:00
process.cpp Prefix all size_t with std:: 2018-09-06 16:03:28 -04:00
process.h Prefix all size_t with std:: 2018-09-06 16:03:28 -04:00
resource_limit.cpp log: replace all NGLOG with LOG 2018-06-29 14:18:07 +03:00
resource_limit.h kernel: Move object class to its own source files 2018-08-23 17:31:59 +02:00
semaphore.cpp Update the entire application to use the new clang format style 2018-03-09 10:54:43 -07:00
semaphore.h kernel: Move object class to its own source files 2018-08-23 17:31:59 +02:00
server_port.cpp kernel: Move object class to its own source files 2018-08-23 17:31:59 +02:00
server_port.h kernel: Move object class to its own source files 2018-08-23 17:31:59 +02:00
server_session.cpp Port "client_port: Make all data members private" from yuzu (#4064) 2018-08-24 19:31:20 +02:00
server_session.h kernel: Move object class to its own source files 2018-08-23 17:31:59 +02:00
session.cpp Update the entire application to use the new clang format style 2018-03-09 10:54:43 -07:00
session.h kernel: Move object class to its own source files 2018-08-23 17:31:59 +02:00
shared_memory.cpp reformat all files with clang-format 2018-06-29 16:56:12 +03:00
shared_memory.h Prefix all size_t with std:: 2018-09-06 16:03:28 -04:00
svc.cpp kernel/svc: Do nothing if svcOutputDebugString's length is <= 0 2018-09-17 19:52:53 -04:00
svc.h HLE: Move SVC handlers to the Kernel namespace 2017-12-09 20:32:58 -08:00
thread.cpp Prefix all size_t with std:: 2018-09-06 16:03:28 -04:00
thread.h kernel: Move object class to its own source files 2018-08-23 17:31:59 +02:00
timer.cpp kernel: Move object class to its own source files 2018-08-23 17:31:59 +02:00
timer.h kernel: Move object class to its own source files 2018-08-23 17:31:59 +02:00
vm_manager.cpp Prefix all size_t with std:: 2018-09-06 16:03:28 -04:00
vm_manager.h Prefix all size_t with std:: 2018-09-06 16:03:28 -04:00
wait_object.cpp Kernel/Threads: Add a new thread status that will allow using a Kernel::Event to put a guest thread to sleep inside an HLE handler until said event is signaled. 2017-09-30 11:16:49 -05:00
wait_object.h kernel: Move object class to its own source files 2018-08-23 17:31:59 +02:00