Files
ladybird/Userland/Libraries/LibGUI
Xuekun Li a33af174b2 LibGUI: Prevent crashes/hangs when deleting words backwards
When the user hits <Ctrl-Backspace> where the previous content has the
format [Punctuation|Seperator]+ before the cursor, there will be a
size_t index underflow in TextDocument::first_word_break_before,
which returns an invalid word break position with a huge column index
(18446744073709551615, -1 in size_t). The invalid text position later
used for executing RemoveTextCommand will cause a crash.

The while loop condition in TextDocument::first_word_break_before is
not right, the loop will never stop when the target.column() becomes
0 inside.
2023-06-16 08:20:09 +01:00
..
2023-02-21 00:54:04 +01:00
2023-02-21 00:54:04 +01:00
2023-02-19 01:09:09 +01:00
2023-02-21 00:54:04 +01:00
2023-02-21 00:54:04 +01:00
2023-01-11 10:24:51 +01:00
2023-01-11 10:24:51 +01:00
2023-04-19 07:59:54 +02:00
2023-04-19 07:59:54 +02:00
2023-02-16 10:47:22 +00:00
2023-02-21 00:54:04 +01:00
2023-02-21 00:54:04 +01:00