serenity/Tests/Kernel
Liav A d8b514873f Kernel: Use FixedStringBuffer for fixed-length strings in syscalls
Using the kernel stack is preferable, especially when the examined
strings should be limited to a reasonable length.

This is a small improvement, because if we don't actually move these
strings then we don't need to own heap allocations for them during the
syscall handler function scope.

In addition to that, some kernel strings are known to be limited, like
the hostname string, for these strings we also can use FixedStringBuffer
to store and copy to and from these buffers, without using any heap
allocations at all.
2023-08-09 21:06:54 -06:00
..
bind-local-socket-to-symlink.cpp
CMakeLists.txt Tests/Kernel: Do not build TestEFault on AArch64 2023-05-28 05:05:09 -06:00
crash-fcntl-invalid-cmd.cpp Everywhere: Remove unused includes of LibC/stdlib.h 2023-01-02 20:27:20 -05:00
crash.cpp Userland: Rename Core::Object to Core::EventReceiver 2023-08-06 20:39:51 +02:00
elf-execve-mmap-race.cpp
elf-symbolication-kernel-read-exploit.cpp
fuzz-syscalls.cpp AK: Remove StringBuilder::build() in favor of to_deprecated_string() 2023-01-27 20:38:49 +00:00
kill-pidtid-confusion.cpp
mmap-write-into-running-programs-executable-file.cpp
mprotect-multi-region-mprotect.cpp
munmap-multi-region-unmapping.cpp
nanosleep-race-outbuf-munmap.cpp
null-deref-close-during-select.cpp
null-deref-crash-during-pthread_join.cpp
path-resolution-race.cpp
pthread-cond-timedwait-example.cpp
setpgid-across-sessions-without-leader.cpp
siginfo-example.cpp
stress-truncate.cpp LibCore+Everywhere: Remove ArgsParser::add*(char const*&) 2023-03-01 10:47:19 +01:00
stress-writeread.cpp LibCore+Everywhere: Remove ArgsParser::add*(char const*&) 2023-03-01 10:47:19 +01:00
TestEFault.cpp
TestEmptyPrivateInodeVMObject.cpp Tests/Kernel: Add missing mode parameter to open() calls in inode tests 2023-01-01 15:15:25 +01:00
TestEmptySharedInodeVMObject.cpp Tests/Kernel: Add missing mode parameter to open() calls in inode tests 2023-01-01 15:15:25 +01:00
TestInvalidUIDSet.cpp
TestKernelAlarm.cpp AK: Rename Time to Duration 2023-05-24 23:18:07 +02:00
TestKernelFilePermissions.cpp Tests: Prefer TRY_OR_FAIL() and MUST() over EXPECT(!.is_error()) 2023-05-14 15:39:38 -06:00
TestKernelPledge.cpp
TestKernelUnveil.cpp Kernel: Use FixedStringBuffer for fixed-length strings in syscalls 2023-08-09 21:06:54 -06:00
TestMemoryDeviceMmap.cpp Everywhere: Remove unused includes of LibC/stdlib.h 2023-01-02 20:27:20 -05:00
TestMunMap.cpp
TestPosixFallocate.cpp
TestPrivateInodeVMObject.cpp Tests/Kernel: Add missing mode parameter to open() calls in inode tests 2023-01-01 15:15:25 +01:00
TestProcFS.cpp
TestProcFSWrite.cpp
TestSharedInodeVMObject.cpp Tests/Kernel: Add missing mode parameter to open() calls in inode tests 2023-01-01 15:15:25 +01:00
TestSigAltStack.cpp
TestSigHandler.cpp
TestSigWait.cpp
uaf-close-while-blocked-in-read.cpp
unveil-symlinks.cpp