Calle Wilund
e3153dd5b0
Commitlog replayer: Range-check skip call
...
Fixes #15269
If segment being replayed is corrupted/truncated we can attempt skipping
completely bogues byte amounts, which can cause assert (i.e. crash) in
file_data_source_impl. This is not a crash-level error, so ensure we
range check the distance in the reader.
v2: Add to corrupt_size if trying to skip more than available. The amount added is "wrong", but at least will
ensure we log the fact that things are broken
Closes scylladb/scylladb#15270
(cherry picked from commit 6ffb482bf3 )
2024-01-05 09:19:28 +02:00
..
2024-01-05 09:19:28 +02:00
2023-04-21 10:07:28 +03:00
2023-10-06 13:25:30 +02:00
2023-02-19 21:05:45 +02:00
2023-08-07 14:38:11 +02:00
2023-11-19 18:47:11 +02:00
2023-10-05 15:19:59 +04:00
2023-09-12 16:37:52 +03:00
2023-09-01 22:34:41 +02:00
2023-02-28 23:00:02 +04:00
2023-09-15 03:46:15 +02:00
2023-10-04 11:42:36 +03:00
2023-09-13 23:00:15 +04:00
2022-05-13 07:11:58 +02:00
2022-05-13 07:11:58 +02:00
2023-07-10 19:36:06 +02:00
2023-06-14 11:41:36 +02:00
2023-03-12 14:04:34 +02:00
2023-03-12 14:04:34 +02:00
2023-04-14 13:21:30 +08:00
2023-03-19 15:16:02 +02:00
2023-03-27 15:12:31 +00:00
2023-03-27 15:12:31 +00:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2023-04-14 13:21:30 +08:00
2023-02-15 11:01:50 +02:00
2023-07-21 13:11:59 +03:00
2023-07-21 12:38:46 +03:00
2022-06-22 20:07:58 +02:00
2023-02-15 11:01:50 +02:00
2023-02-15 11:01:50 +02:00
2022-06-22 20:16:48 +02:00
2023-03-16 20:34:18 +08:00
2022-11-28 21:58:30 +02:00
2022-06-22 20:16:48 +02:00
2022-06-22 20:16:48 +02:00
2022-05-13 07:11:58 +02:00
2023-10-11 00:32:05 +03:00
2023-10-17 10:55:30 +02:00
2023-10-11 00:32:05 +03:00
2023-06-21 00:58:24 +02:00
2023-06-06 13:29:16 +03:00
2022-12-05 08:14:39 +02:00
2022-09-26 11:02:54 +03:00
2023-09-13 23:17:20 +04:00
2023-09-13 23:04:50 +04:00
2023-09-18 23:17:01 +03:00
2023-03-14 19:26:05 +04:00
2022-03-25 16:19:26 +02:00
2023-11-16 12:51:03 +01:00
2023-10-17 10:55:30 +02:00
2022-01-18 12:15:18 +01:00
2023-06-21 00:58:24 +02:00
2023-02-17 07:11:18 +02:00
2023-09-13 23:17:20 +04:00
2023-09-13 23:00:15 +04:00
2022-05-13 07:11:58 +02:00