From 4bf3388f4eac44569003bad85aa90cf919719825 Mon Sep 17 00:00:00 2001 From: John Sully Date: Sat, 28 Sep 2019 17:04:08 -0400 Subject: [PATCH] RDB fuzz test cases Former-commit-id: 6df4d294220ed914c592f3bd195ae921d6a84cde --- fuzz/rdb/dict.txt | 13 +++++++++++++ fuzz/rdb/testcases/empty.rdb | Bin 0 -> 92 bytes fuzz/rdb/testcases/expire.rdb | Bin 0 -> 152 bytes fuzz/rdb/testcases/expireonload.rdb | Bin 0 -> 152 bytes fuzz/rdb/testcases/integer.rdb | Bin 0 -> 144 bytes fuzz/rdb/testcases/integer_shared.rdb | Bin 0 -> 141 bytes fuzz/rdb/testcases/multidb.rdb | Bin 0 -> 143 bytes fuzz/rdb/testcases/replica.rdb | Bin 0 -> 175 bytes fuzz/rdb/testcases/set.rdb | Bin 0 -> 151 bytes fuzz/rdb/testcases/string.rdb | Bin 0 -> 143 bytes src/server.cpp | 4 ++++ 11 files changed, 17 insertions(+) create mode 100644 fuzz/rdb/dict.txt create mode 100644 fuzz/rdb/testcases/empty.rdb create mode 100644 fuzz/rdb/testcases/expire.rdb create mode 100644 fuzz/rdb/testcases/expireonload.rdb create mode 100644 fuzz/rdb/testcases/integer.rdb create mode 100644 fuzz/rdb/testcases/integer_shared.rdb create mode 100644 fuzz/rdb/testcases/multidb.rdb create mode 100644 fuzz/rdb/testcases/replica.rdb create mode 100644 fuzz/rdb/testcases/set.rdb create mode 100644 fuzz/rdb/testcases/string.rdb diff --git a/fuzz/rdb/dict.txt b/fuzz/rdb/dict.txt new file mode 100644 index 000000000..d854f3319 --- /dev/null +++ b/fuzz/rdb/dict.txt @@ -0,0 +1,13 @@ +="repl-stream-db" +="repl-id" +="repl-offset" +="lua" +="redis-ver" +="ctime" +="used-mem" +="aof-preamble" +="redis-bits" +="mvcc-tstamp" +="keydb-subexpire-key" +="keydb-subexpire-when" + diff --git a/fuzz/rdb/testcases/empty.rdb b/fuzz/rdb/testcases/empty.rdb new file mode 100644 index 0000000000000000000000000000000000000000..c490bd4c497d1b6b9badf4c2bf963717d786255f GIT binary patch literal 92 zcmWG?b@2=~Ffg$E#aWb^l3A=n?bZfBwzi#xY0Ia#-) zxFj*RK-kdC#MIK%#K6GN)XdDp*x1OzfPuXvwYVfZwURk4KmUJJ&6?etj4G!A0L=n7 Aq5uE@ literal 0 HcmV?d00001 diff --git a/fuzz/rdb/testcases/expireonload.rdb b/fuzz/rdb/testcases/expireonload.rdb new file mode 100644 index 0000000000000000000000000000000000000000..4e98f5f81b5240ee8d3a08c61df506ee900d3e84 GIT binary patch literal 152 zcmWG?b@2=~Ffg$E#aWb^l3A=n?bZfWME-oX=-3@Vr*c-z+RGCT#}tydC0zWN2w&VPR}yYG7f(z+RGCT#}tyd4Tc%e@k`Fn?bZfn?bZf 0 && cserver.cthreads <= MAX_EVENT_LOOPS); pthread_t rgthread[MAX_EVENT_LOOPS]; for (int iel = 0; iel < cserver.cthreads; ++iel)