ladybird/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 Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
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 Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
elf-symbolication-kernel-read-exploit.cpp Kernel: Remove i686 support 2022-12-28 11:53:41 +01:00
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 Everywhere: Refer to pthread.h by its non-prefixed name 2022-07-19 11:00:35 +01:00
mmap-write-into-running-programs-executable-file.cpp Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00
mprotect-multi-region-mprotect.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
munmap-multi-region-unmapping.cpp Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00
nanosleep-race-outbuf-munmap.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
null-deref-close-during-select.cpp Tests: Fix -Wunreachable-code warnings from clang 2021-10-08 23:33:46 +02:00
null-deref-crash-during-pthread_join.cpp Tests+Userland: Prefer using __builtin_trap() instead of UD2 2022-10-14 13:01:13 +02:00
path-resolution-race.cpp Tests: Fix -Wunreachable-code warnings from clang 2021-10-08 23:33:46 +02:00
pthread-cond-timedwait-example.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
setpgid-across-sessions-without-leader.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
siginfo-example.cpp Tests: Fix new GCC 12 warnings 2022-05-12 13:12:37 +02:00
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 Tests/Kernel: Make sure inaccessible area in TestEFault is actually that 2022-08-24 18:35:41 +02:00
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 Kernel: Return EINVAL when specifying -1 for setuid and similar syscalls 2021-12-20 11:32:16 +01:00
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 AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
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 Kernel: Unmapping a non-mapped region with munmap() should be a no-op 2021-07-30 13:16:55 +02:00
TestPosixFallocate.cpp Tests/Kernel: Add a very simple test for posix_fallocate() 2022-11-29 11:09:19 +01:00
TestPrivateInodeVMObject.cpp Tests/Kernel: Add missing mode parameter to open() calls in inode tests 2023-01-01 15:15:25 +01:00
TestProcFS.cpp Tests: TestProcFs cannot assume stdin/stdout/stderr are the same 2021-06-30 08:18:28 +04:30
TestProcFSWrite.cpp Kernel: Write test that crashes ProcFS 2021-10-31 18:44:12 +01:00
TestSharedInodeVMObject.cpp Tests/Kernel: Add missing mode parameter to open() calls in inode tests 2023-01-01 15:15:25 +01:00
TestSigAltStack.cpp AK+Everywhere: Add AK_COMPILER_{GCC,CLANG} and use them most places 2022-10-04 23:35:07 +01:00
TestSigHandler.cpp Tests: Add tests for inheriting signal handlers 2022-07-05 20:58:38 +03:00
TestSigWait.cpp Tests: Add tests for sigwait/sigwaitinfo/sigtimedwait 2021-12-12 08:34:19 +02:00
uaf-close-while-blocked-in-read.cpp Tests: Fix -Wunreachable-code warnings from clang 2021-10-08 23:33:46 +02:00
unveil-symlinks.cpp Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00