Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
63d62eb7
Commit
63d62eb7
authored
Jun 30, 2011
by
antirez
Browse files
hiredis max multi bulk nesting level raised to 7
parent
404345d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
deps/hiredis/hiredis.c
View file @
63d62eb7
...
...
@@ -50,7 +50,7 @@ typedef struct redisReader {
size_t
pos
;
/* buffer cursor */
size_t
len
;
/* buffer length */
redisReadTask
rstack
[
3
];
/* stack of read tasks */
redisReadTask
rstack
[
9
];
/* stack of read tasks */
int
ridx
;
/* index of stack */
void
*
privdata
;
/* user-settable arbitrary field */
}
redisReader
;
...
...
@@ -347,9 +347,9 @@ static int processMultiBulkItem(redisReader *r) {
int
root
=
0
;
/* Set error for nested multi bulks with depth > 1 */
if
(
r
->
ridx
==
2
)
{
if
(
r
->
ridx
==
8
)
{
redisSetReplyReaderError
(
r
,
sdscatprintf
(
sdsempty
(),
"No support for nested multi bulk replies with depth >
1
"
));
"No support for nested multi bulk replies with depth >
7
"
));
return
-
1
;
}
...
...
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