summaryrefslogtreecommitdiff
path: root/Userland/Tests
AgeCommit message (Collapse)Author
2020-10-03Everywhere: Fix more typosLinus Groh
2020-09-05Meta: Fix wonky copyright headers in TestsBen Wiederhake
2020-08-30LibC: Deprecate strcpy(), strncpy(), strcat() and strncat() :^)Sergey Bugaev
And also mark strlcpy() and strlcat() with __attribute__((warn_unused_result)). Since our code is warning-free, this ensures we never misuse those functions. (Or are very sure about doing it when turning off the warning for a particular piece of code.)
2020-08-30Tests: Assert the path fitsSergey Bugaev
2020-08-24Tests: Prefer strlcpy over strncpyBen Wiederhake
Because it looks nicer.
2020-08-24LibC: Stub and test strlcpyBen Wiederhake
2020-08-24Tests: Remove unused includeBen Wiederhake
2020-08-22LibC: Demonstrate off-by-one in current snprintfBen Wiederhake
The function whose main selling point is that there always is a NUL-terminator ... missed the NUL-terminator.
2020-08-16AK: Rename KB, MB, GB to KiB, MiB, GiBNico Weber
The SI prefixes "k", "M", "G" mean "10^3", "10^6", "10^9". The IEC prefixes "Ki", "Mi", "Gi" mean "2^10", "2^20", "2^30". Let's use the correct name, at least in code. Only changes the name of the constants, no other behavior change.
2020-08-12Test: Mark compilation-unit-only functions as staticBen Wiederhake
This enables a nice warning in case a function becomes dead code. Also, in the case of test-crypto.cpp, I took the liberty to add the prefix 'g_' to the global event loop.
2020-08-10Kernel: Demonstrate kill's pid/tid confusion bugBen Wiederhake
2020-08-10Kernel: Demonstrate setpgid confusion bugBen Wiederhake
Technically, this can be 'exploited' to set the pgid of an exploiting process to a near-arbitrary new pgid. This can cause conflicts when assigning future pgids, destroys the session-boundary, and might confuse future pgid-to-session lookups. In practice, I can't come up with a way that this causes actual harm.
2020-08-02Tests: License headers, clang-format, clearer outputBen Wiederhake
2020-08-02Tests: Build automatically, fix compilation errorsBen Wiederhake