Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
fe7e8dc9
Commit
fe7e8dc9
authored
Feb 05, 2020
by
Oran Agra
Browse files
Add handling of short read of module id in rdb
parent
44ac202f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/rdb.c
View file @
fe7e8dc9
...
...
@@ -1871,7 +1871,10 @@ robj *rdbLoadObject(int rdbtype, rio *rdb, robj *key) {
}
}
else
if
(
rdbtype
==
RDB_TYPE_MODULE
||
rdbtype
==
RDB_TYPE_MODULE_2
)
{
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
);
char
name
[
10
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment