1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-12 23:41:00 +00:00
serenity/Userland
Idan Horowitz 6704961c82 AK: Replace the mutable String::replace API with an immutable version
This removes the awkward String::replace API which was the only String
API which mutated the String and replaces it with a new immutable
version that returns a new String with the replacements applied. This
also fixes a couple of UAFs that were caused by the use of this API.

As an optimization an equivalent StringView::replace API was also added
to remove an unnecessary String allocations in the format of:
`String { view }.replace(...);`
2021-09-11 20:36:43 +03:00
..
Applets AudioApplet: Fix initial mute state 2021-09-04 21:01:28 +02:00
Applications AK: Replace the mutable String::replace API with an immutable version 2021-09-11 20:36:43 +03:00
Demos WidgetGallery: Add GUI::ValueSlider widget 2021-09-11 11:37:39 +02:00
DevTools AK: Replace the mutable String::replace API with an immutable version 2021-09-11 20:36:43 +03:00
DynamicLoader CMake: Let Meta/serenity.sh run aarch64 make it past cmake 2021-08-28 14:43:07 +01:00
Games Breakout: Improve collision response between ball and paddle 2021-09-10 22:08:22 +02:00
Libraries AK: Replace the mutable String::replace API with an immutable version 2021-09-11 20:36:43 +03:00
Services AK: Replace the mutable String::replace API with an immutable version 2021-09-11 20:36:43 +03:00
Shell Everywhere: Behaviour => Behavior 2021-09-07 13:53:14 +02:00
Utilities AK: Replace the mutable String::replace API with an immutable version 2021-09-11 20:36:43 +03:00
CMakeLists.txt Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00