diff options
| author | 2018-09-13 21:04:43 -0400 | |
|---|---|---|
| committer | 2018-09-13 23:07:27 -0400 | |
| commit | 4f8756edd06d76af33208047a5ed9b776132d97a (patch) | |
| tree | 11ef5693f5d6ed3e1c040ffe2ee1b0981f07314c /src/common/string_util.cpp | |
| parent | kernel/svc: Sanitize addresses, permissions, and sizes within svcMapSharedMem... (diff) | |
| download | yuzu-4f8756edd06d76af33208047a5ed9b776132d97a.tar.gz yuzu-4f8756edd06d76af33208047a5ed9b776132d97a.tar.xz yuzu-4f8756edd06d76af33208047a5ed9b776132d97a.zip | |
kernel/svc: Sanitize creation of shared memory via svcCreateSharedMemory()
The kernel caps the size limit of shared memory to 8589930496 bytes (or
(1GB - 512 bytes) * 8), so approximately 8GB, where every GB has a 512
byte sector taken off of it.
It also ensures the shared memory is created with either read or
read/write permissions for both permission types passed in, allowing the
remote permissions to also be set as "don't care".
Diffstat (limited to 'src/common/string_util.cpp')
0 files changed, 0 insertions, 0 deletions