mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-30 11:37:16 +02:00
The m_last_match, m_left_context, and m_right_context views were being created from a temporary string instead of from the owned m_input. This caused the views to point to destroyed stack memory when accessing RegExp.lastMatch after calling String.replace() with a regex.
6.9 KiB
6.9 KiB