1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-13 00:50:59 +00:00
serenity/Userland
Brian Gianforcaro ecc0459f76 LibC: Fix potential double free in ttyname_r_for_directory
If we break out of the loop before we attempt to allocate again,
then we double free the memory pointed to by `name_path`.

Found by Static Analysis: Sonar Cloud
2022-03-27 16:43:05 -07:00
..
Applets ClipboardHistory: Show ranges and max dimensions for copied glyphs 2022-03-18 01:12:26 +01:00
Applications WindowServer+LibGUI: Expose raw scroll wheel values to applications 2022-03-27 01:11:27 +01:00
Demos Demos/LibGfxScaleDemo: Use BGRA8888 bitmap in canvas 2022-03-26 18:24:11 +00:00
DevTools Everywhere: Rename CommandResult stdout, stderr members to output, error 2022-03-27 16:41:39 -07:00
DynamicLoader DynamicLoader+LibC+LibTimeZone: Include LibTimeZone sources in LibC 2022-01-23 12:48:26 +00:00
Games LibCards+Games: Change name of card type to card suit 2022-03-18 23:49:34 +00:00
Libraries LibC: Fix potential double free in ttyname_r_for_directory 2022-03-27 16:43:05 -07:00
Services LookupServer: Fix confusing copy/paste error in debug message 2022-03-27 18:39:47 +01:00
Shell Shell: Keep the stdio and rpath pledges for execute_process() 2022-03-27 21:05:44 +02:00
Utilities disk_benchmark: TRY more stuff :^) 2022-03-27 08:33:24 -04:00
CMakeLists.txt Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00