ladybird/Userland
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
..
Applets AK: Rename adopt() to adopt_ref() 2021-04-23 16:46:57 +02:00
Applications LibGfx: Unify Rect, Point, and Size 2021-05-02 22:48:06 +02:00
Demos WindowServer+LibGfx: Automatic "modified" markers in window titles 2021-05-01 19:42:29 +02:00
DevTools UserspaceEmulator: Make sure TLS allocation behavior matches kernel 2021-05-03 08:25:44 +02:00
DynamicLoader DynamicLoader: Fix compiler warning 2021-05-03 08:42:39 +02:00
Games Userland: Fix 64-bit portability issues 2021-05-03 08:42:39 +02:00
Libraries LibC: Fix invalid 1-byte read I introduced in dirent. 2021-05-03 09:47:05 +02:00
Services Userland: Fix 64-bit portability issues 2021-05-03 08:42:39 +02:00
Shell Shell: Only match entries from PATH when a program name is given 2021-05-02 19:46:33 +02:00
Tests LibC: Fix invalid 1-byte read I introduced in dirent. 2021-05-03 09:47:05 +02:00
Utilities Userland: Fix 64-bit portability issues 2021-05-03 08:42:39 +02:00
CMakeLists.txt Userland: Rename *.MenuApplet => *.Applet 2021-04-04 16:29:55 +02:00