mirror of
https://github.com/fluencelabs/redis
synced 2025-04-26 11:02:13 +00:00
Add handling of short read of module id in rdb
This commit is contained in:
parent
44ac202fbf
commit
fe7e8dc955
@ -1871,7 +1871,10 @@ robj *rdbLoadObject(int rdbtype, rio *rdb, robj *key) {
|
|||||||
}
|
}
|
||||||
} else if (rdbtype == RDB_TYPE_MODULE || rdbtype == RDB_TYPE_MODULE_2) {
|
} else if (rdbtype == RDB_TYPE_MODULE || rdbtype == RDB_TYPE_MODULE_2) {
|
||||||
uint64_t moduleid = rdbLoadLen(rdb,NULL);
|
uint64_t moduleid = rdbLoadLen(rdb,NULL);
|
||||||
if (rioGetReadError(rdb)) return NULL;
|
if (rioGetReadError(rdb)) {
|
||||||
|
rdbReportReadError("Short read module id");
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
moduleType *mt = moduleTypeLookupModuleByID(moduleid);
|
moduleType *mt = moduleTypeLookupModuleByID(moduleid);
|
||||||
char name[10];
|
char name[10];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user