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-06-09 17:21:43 +02:00
2023-04-30 05:48:14 +02:00
2023-05-23 12:35:42 +02:00
2023-06-14 17:53:59 +02:00
2023-06-14 17:53:59 +02:00
2023-05-23 12:35:42 +02:00
2023-05-13 12:53:49 +02:00
2023-06-15 13:53:22 +01:00
2023-06-15 13:53:22 +01:00
2023-05-06 08:50:12 +02:00
2023-05-05 16:41:21 +01:00
2023-04-30 05:49:46 +02:00
2023-05-23 12:35:42 +02:00
2023-04-15 15:24:50 +02:00
2023-05-23 12:35:42 +02:00
2023-06-15 08:07:17 +02:00
2023-05-08 21:06:13 -06:00
2023-05-23 05:59:49 +02:00
2023-05-23 05:59:49 +02:00
2023-05-23 05:59:49 +02:00
2023-05-23 12:35:42 +02:00
2023-05-23 12:35:42 +02:00
2023-06-14 17:53:59 +02:00
2023-06-15 13:53:22 +01:00
2023-04-19 07:59:54 +02:00
2023-05-15 12:15:39 +02:00
2023-05-15 12:15:39 +02:00
2023-04-30 05:49:46 +02:00
2023-05-12 09:40:24 +01:00
2023-05-23 05:59:49 +02:00
2023-05-15 12:15:39 +02:00
2023-06-14 17:53:59 +02:00
2023-06-14 17:53:59 +02:00
2023-05-01 11:10:56 +02:00
2023-06-14 17:53:59 +02:00
2023-06-14 17:53:59 +02:00
2023-05-23 05:59:49 +02:00
2023-05-07 21:12:35 +02:00
2023-04-30 05:49:46 +02:00
2023-05-13 12:53:49 +02:00
2023-05-13 12:53:49 +02:00
2023-05-15 14:15:53 +02:00
2023-06-14 17:53:59 +02:00
2023-05-23 12:35:42 +02:00
2023-05-05 15:20:44 +01:00
2023-05-23 12:35:42 +02:00
2023-05-23 05:59:49 +02:00
2023-04-18 10:05:21 +02:00
2023-06-14 17:53:59 +02:00
2023-05-03 21:39:09 +01:00
2023-06-14 17:53:59 +02:00
2023-04-30 05:49:46 +02:00
2023-04-30 05:48:14 +02:00
2023-04-24 09:21:51 +02:00
2023-05-23 12:35:42 +02:00
2023-04-30 05:48:14 +02:00
2023-04-19 07:59:54 +02:00
2023-04-19 07:59:54 +02:00
2023-04-19 07:59:54 +02:00
2023-04-19 07:59:54 +02:00
2023-04-19 07:59:54 +02:00
2023-05-24 23:18:07 +02:00
2023-05-24 23:18:07 +02:00
2023-06-14 17:53:59 +02:00
2023-04-30 05:49:46 +02:00
2023-05-23 05:59:49 +02:00
2023-05-23 12:35:42 +02:00
2023-04-30 05:48:14 +02:00
2023-04-30 05:48:14 +02:00
2023-05-23 12:35:42 +02:00
2023-06-14 17:53:59 +02:00
2023-06-14 17:53:59 +02:00
2023-05-23 12:35:42 +02:00
2023-05-23 12:35:42 +02:00
2023-05-23 05:59:49 +02:00
2023-04-30 05:49:46 +02:00
2023-06-14 17:53:59 +02:00
2023-06-14 17:53:59 +02:00
2023-05-13 12:53:49 +02:00
2023-05-13 12:53:49 +02:00
2023-06-15 13:53:22 +01:00
2023-06-15 13:53:22 +01:00
2023-05-23 12:35:42 +02:00
2023-05-28 21:12:19 +02:00
2023-05-23 12:35:42 +02:00
2023-06-16 08:20:09 +01:00
2023-06-06 23:53:02 +02:00
2023-06-06 23:53:02 +02:00
2023-06-01 06:26:40 +02:00
2023-06-15 13:53:22 +01:00
2023-05-23 12:35:42 +02:00
2023-05-23 12:35:42 +02:00
2023-06-14 17:53:59 +02:00
2023-05-24 23:18:07 +02:00
2023-05-24 23:18:07 +02:00
2023-05-23 12:35:42 +02:00
2023-05-07 01:05:09 +02:00
2023-05-23 12:35:42 +02:00
2023-05-15 12:15:39 +02:00
2023-05-15 12:15:39 +02:00