summaryrefslogtreecommitdiff
path: root/deps/hiredis
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2011-06-30 13:34:38 +0200
committerantirez <antirez@gmail.com>2011-06-30 13:34:38 +0200
commit63d62eb786aacf25e0533cf328d95dc45806dcba (patch)
tree2a648cc1893a4b169cf57168d2394383f1670074 /deps/hiredis
parent404345d8e53ed5646e3a0128beecaa2052dd4a81 (diff)
downloadredis-63d62eb786aacf25e0533cf328d95dc45806dcba.tar.gz
hiredis max multi bulk nesting level raised to 7
Diffstat (limited to 'deps/hiredis')
-rw-r--r--deps/hiredis/hiredis.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/deps/hiredis/hiredis.c b/deps/hiredis/hiredis.c
index f2135bace..b27c63b83 100644
--- a/deps/hiredis/hiredis.c
+++ b/deps/hiredis/hiredis.c
@@ -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;
}