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
0ace1e6d
Commit
0ace1e6d
authored
Feb 27, 2015
by
antirez
Browse files
Hash: HSTRLEN crash fixed when getting len of int-encoded value
parent
4e54b85a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/t_hash.c
View file @
0ace1e6d
...
...
@@ -159,7 +159,7 @@ size_t hashTypeGetValueLength(robj *o, robj *field) {
robj
*
aux
;
if
(
hashTypeGetFromHashTable
(
o
,
field
,
&
aux
)
==
0
)
len
=
s
dsl
en
(
aux
->
ptr
);
len
=
s
tringObjectL
en
(
aux
);
}
else
{
redisPanic
(
"Unknown hash encoding"
);
}
...
...
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