read-redis/tests/assets
Oran Agra ca1c182567 Sanitize dump payload: ziplist, listpack, zipmap, intset, stream
When loading an encoded payload we will at least do a shallow validation to
check that the size that's encoded in the payload matches the size of the
allocation.
This let's us later use this encoded size to make sure the various offsets
inside encoded payload don't reach outside the allocation, if they do, we'll
assert/panic, but at least we won't segfault or smear memory.

We can also do 'deep' validation which runs on all the records of the encoded
payload and validates that they don't contain invalid offsets. This lets us
detect corruptions early and reject a RESTORE command rather than accepting
it and asserting (crashing) later when accessing that payload via some command.

configuration:
- adding ACL flag skip-sanitize-payload
- adding config sanitize-dump-payload [yes/no/clients]

For now, we don't have a good way to ensure MIGRATE in cluster resharding isn't
being slowed down by these sanitation, so i'm setting the default value to `no`,
but later on it should be set to `clients` by default.

changes:
- changing rdbReportError not to `exit` in RESTORE command
- adding a new stat to be able to later check if cluster MIGRATE isn't being
  slowed down by sanitation.
2020-12-06 14:54:34 +02:00
..
corrupt_ziplist.rdb Sanitize dump payload: ziplist, listpack, zipmap, intset, stream 2020-12-06 14:54:34 +02:00
default.conf Fix test "server is up" detection after logging changes. 2016-12-19 16:49:58 +01:00
encodings.rdb RDB load of different encodings test added. 2012-03-23 20:24:30 +01:00
hash-zipmap.rdb Test that zipmap from RDB is correctly converted 2012-01-25 13:28:11 -08:00
minimal.conf Fix default/explicit "save" parameter loading. (#7767) 2020-09-09 15:12:57 +03:00
user.acl Tests: Add aclfile load and save tests (#7765) 2020-09-09 17:13:35 +03:00