Kamil Braun
eb6202ef9c
Merge 'db: hints: add checksum to sync_point encoding' from Patryk Jędrzejczak
...
Fixes #9405
`sync_point` API provided with incorrect sync point id might allocate
crazy amount of memory and fail with `std::bad_alloc`.
To fix this, we can check if the encoded sync point has been modified
before decoding. We can achieve this by calculating a checksum before
encoding, appending it to the encoded sync point, and compering it with
a checksum calculated in `db::hints::decode` before decoding.
Closes #14534
* github.com:scylladb/scylladb:
db: hints: add checksum to sync point encoding
db: hints: add the version_size constant
2023-07-18 13:05:10 +02:00
..
2023-06-21 00:58:24 +02:00
2023-04-21 10:07:28 +03:00
2023-07-17 16:05:07 +02:00
2023-02-19 21:05:45 +02:00
2023-03-13 13:35:17 +02:00
2023-07-18 09:18:28 +03:00
2023-04-21 09:08:27 +03:00
2023-03-06 13:28:40 +03:00
2023-06-26 15:29:01 +02:00
2023-02-28 23:00:02 +04:00
2023-07-12 15:26:54 +03:00
2023-07-14 16:20:48 +03:00
2023-07-14 09:03:01 +03: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-02-15 22:57:18 +02:00
2022-05-13 07:11:58 +02: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
2023-07-17 12:00:49 +03: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
2022-07-18 14:18:48 +02:00
2023-07-03 14:19:54 +03:00
2023-06-21 00:58:24 +02: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-03-21 09:56:18 +03:00
2022-05-16 14:14:14 +03:00
2023-07-18 10:27:18 +08:00
2023-03-14 19:26:05 +04:00
2022-03-25 16:19:26 +02:00
2023-07-18 10:27:18 +08:00
2023-06-18 13:39:27 +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-07-18 10:27:18 +08:00
2023-07-12 15:26:54 +03:00
2022-05-13 07:11:58 +02:00