diff options
author | qinchao <1187620716@qq.com> | 2018-01-16 22:43:06 +0800 |
---|---|---|
committer | qinchao <1187620716@qq.com> | 2018-01-16 22:43:06 +0800 |
commit | 1e0e1685702d613fbad281c2db35540ad21d5887 (patch) | |
tree | b51d986067106b546e5bacae0cf418c087d31460 /src/ziplist.c | |
parent | 0cc43760d774520d5a8c3b6b0f3a35694fc504fc (diff) | |
download | redis-1e0e1685702d613fbad281c2db35540ad21d5887.tar.gz |
fix assert problem in ZIP_DECODE_PREVLENSIZE
, see issue: https://github.com/antirez/redis/issues/4587
Diffstat (limited to 'src/ziplist.c')
-rw-r--r-- | src/ziplist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ziplist.c b/src/ziplist.c index e407937ff..4d2ee821e 100644 --- a/src/ziplist.c +++ b/src/ziplist.c @@ -440,7 +440,7 @@ unsigned int zipStorePrevEntryLength(unsigned char *p, unsigned int len) { if ((prevlensize) == 1) { \ (prevlen) = (ptr)[0]; \ } else if ((prevlensize) == 5) { \ - assert(sizeof((prevlensize)) == 4); \ + assert(sizeof((prevlen)) == 4); \ memcpy(&(prevlen), ((char*)(ptr)) + 1, 4); \ memrev32ifbe(&prevlen); \ } \ |