From 5f450e49280ce01d5329798d87136f109761433a Mon Sep 17 00:00:00 2001 From: antirez Date: Thu, 18 Jul 2019 18:59:38 +0200 Subject: [PATCH] RDB: make sure to abort on LZF encoding error. --- src/rdb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/rdb.c b/src/rdb.c index 226324627..97fad2573 100644 --- a/src/rdb.c +++ b/src/rdb.c @@ -386,8 +386,7 @@ void *rdbLoadLzfStringObject(rio *rdb, int flags, size_t *lenptr) { /* Load the compressed representation and uncompress it to target. */ if (rioRead(rdb,c,clen) == 0) goto err; if (lzf_decompress(c,clen,val,len) == 0) { - if (rdbCheckMode) rdbCheckSetError("Invalid LZF compressed string"); - goto err; + rdbExitReportCorruptRDB("Invalid LZF compressed string"); } zfree(c);