mirror of
https://github.com/fluencelabs/redis
synced 2025-06-18 03:31:21 +00:00
Fix for hash table collision attack. We simply randomize hash table initialization value at startup time.
This commit is contained in:
@ -589,6 +589,8 @@ void sigsegvHandler(int sig, siginfo_t *info, void *secret) {
|
||||
/* Log INFO and CLIENT LIST */
|
||||
redisLog(REDIS_WARNING, "--- INFO OUTPUT");
|
||||
infostring = genRedisInfoString("all");
|
||||
infostring = sdscatprintf(infostring, "hash_init_value: %u\n",
|
||||
dictGetHashFunctionSeed());
|
||||
redisLogRaw(REDIS_WARNING, infostring);
|
||||
redisLog(REDIS_WARNING, "--- CLIENT LIST OUTPUT");
|
||||
clients = getAllClientsInfoString();
|
||||
|
Reference in New Issue
Block a user