ladybird/Userland/Tests
Brian Gianforcaro 0726d39cb1 LibC: Fix invalid 1-byte read I introduced in dirent.
When attempting to fix the dirent code I also changed
this to use strlcpy instead of the custom string copy
loop that was there before. Looking over strlcpy it
looked like it should work when using a non null terminated
string, I obviously misinterpreted the implementation
as it will read till it finds a null terminator.

Manually null terminate the string to address this.

Gunnar found this after he fixed UserspaceEmulator.
I reproduced it locally using his branch, and also
found the memory leak I had in the unit test for the
scandir that I added, so lets fix that as well.

Reported-by: Gunnar Beutner <gbeutner@serenityos.org>
2021-05-03 09:47:05 +02:00
..
Kernel Userland: Fix 64-bit portability issues 2021-05-03 08:42:39 +02:00
LibC LibC: Fix invalid 1-byte read I introduced in dirent. 2021-05-03 09:47:05 +02:00
LibGfx Build: Simplify LibGfx test's CMakeLists.txt with serenity_test(..) 2021-04-29 10:37:26 +02:00
LibM AK+Userland: Move AK/TestSuite.h into LibTest and rework Tests' CMake 2021-04-25 09:36:49 +02:00
LibPthread Tests: Add unit tests for the pthread_spinlock_t API. 2021-05-02 20:59:38 +02:00
UserspaceEmulator AK+Userland: Move AK/TestSuite.h into LibTest and rework Tests' CMake 2021-04-25 09:36:49 +02:00
CMakeLists.txt Tests: Add unit tests for the pthread_spinlock_t API. 2021-05-02 20:59:38 +02:00