aboutsummaryrefslogtreecommitdiff
path: root/src/common/string_util.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-09-13 20:16:43 -0400
committerLioncash <mathew1800@gmail.com>2018-09-13 23:07:23 -0400
commitf85b28f993cc20200c379aaa81d53e1729c1abcb (patch)
tree8a4b6896a20ab7823e2ebe9a97e39af4b27295c7 /src/common/string_util.cpp
parentd241be6c780ce07e26c9e8d8df03ae73af4ad841 (diff)
kernel/svc: Sanitize addresses, permissions, and sizes within svcMapSharedMemory() and svcUnmapSharedMemory()
Part of the checking done by the kernel is to check if the given address and size are 4KB aligned, as well as checking if the size isn't zero. It also only allows mapping shared memory as readable or read/write, but nothing else, and so we shouldn't allow mapping as anything else either.
Diffstat (limited to 'src/common/string_util.cpp')
0 files changed, 0 insertions, 0 deletions