redict/tests/integration
Oran Agra c31055db61 Sanitize dump payload: fuzz tester and fixes for segfaults and leaks it exposed
The test creates keys with various encodings, DUMP them, corrupt the payload
and RESTORES it.
It utilizes the recently added use-exit-on-panic config to distinguish between
 asserts and segfaults.
If the restore succeeds, it runs random commands on the key to attempt to
trigger a crash.

It runs in two modes, one with deep sanitation enabled and one without.
In the first one we don't expect any assertions or segfaults, in the second one
we expect assertions, but no segfaults.
We also check for leaks and invalid reads using valgrind, and if we find them
we print the commands that lead to that issue.

Changes in the code (other than the test):
- Replace a few NPD (null pointer deference) flows and division by zero with an
  assertion, so that it doesn't fail the test. (since we set the server to use
  `exit` rather than `abort` on assertion).
- Fix quite a lot of flows in rdb.c that could have lead to memory leaks in
  RESTORE command (since it now responds with an error rather than panic)
- Add a DEBUG flag for SET-SKIP-CHECKSUM-VALIDATION so that the test don't need
  to bother with faking a valid checksum
- Remove a pile of code in serverLogObjectDebugInfo which is actually unsafe to
  run in the crash report (see comments in the code)
- fix a missing boundary check in lzf_decompress

test suite infra improvements:
- be able to run valgrind checks before the process terminates
- rotate log files when restarting servers
2020-12-06 14:54:34 +02:00
..
aof-race.tcl TLS: Connections refactoring and TLS support. 2019-10-07 21:06:13 +03:00
aof.tcl test infra - wait_done_loading 2020-09-06 09:59:19 +03:00
block-repl.tcl TLS: Connections refactoring and TLS support. 2019-10-07 21:06:13 +03:00
convert-zipmap-hash-on-load.tcl convert-zipmap-hash-on-load false positive fixed. 2012-03-25 11:02:16 +02:00
corrupt-dump-fuzzer.tcl Sanitize dump payload: fuzz tester and fixes for segfaults and leaks it exposed 2020-12-06 14:54:34 +02:00
corrupt-dump.tcl Sanitize dump payload: fuzz tester and fixes for segfaults and leaks it exposed 2020-12-06 14:54:34 +02:00
logging.tcl Disable new SIGABRT test on valgrind (#8013) 2020-11-04 13:13:55 +02:00
psync2-pingoff.tcl fix pingoff test race 2020-05-31 15:51:52 +03:00
psync2-reg.tcl fix loading race in psync2 tests 2020-04-28 09:18:01 +03:00
psync2.tcl Sanitize dump payload: fuzz tester and fixes for segfaults and leaks it exposed 2020-12-06 14:54:34 +02:00
rdb.tcl Sanitize dump payload: fuzz tester and fixes for segfaults and leaks it exposed 2020-12-06 14:54:34 +02:00
redis-benchmark.tcl Modify help msg PING_BULK to PING_MBULK in benchmark (#8109) 2020-12-02 13:17:25 +02:00
redis-cli.tcl Tests: clean up stale .cli files. (#7768) 2020-09-09 12:30:43 +03:00
replication-2.tcl Slave removal: remove slave from integration tests descriptions. 2018-09-11 15:32:28 +02:00
replication-3.tcl add daily github actions with libc malloc and valgrind 2020-05-04 09:52:20 +03:00
replication-4.tcl Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-09-10 13:43:38 +03:00
replication-psync.tcl diskless replication on slave side (don't store rdb to file), plus some other related fixes 2019-07-08 15:37:48 +03:00
replication.tcl Propagate GETSET and SET-GET as SET (#7957) 2020-11-03 14:56:57 +02:00