Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 29e5cf0

Browse filesBrowse files
Minor refactor of ignroe numbers option
* We want to run the logic if either a serializer OR a compression option is set. * IEE754 doubles can theoretically have a huge number of characters.
1 parent f9ce942 commit 29e5cf0
Copy full SHA for 29e5cf0

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎library.c

Copy file name to clipboardExpand all lines: library.c
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3882,10 +3882,10 @@ redis_unpack(RedisSock *redis_sock, const char *src, int srclen, zval *zdst) {
38823882
size_t len;
38833883
char *buf;
38843884

3885-
if (UNEXPECTED((redis_sock->serializer != REDIS_SERIALIZER_NONE &&
3885+
if (UNEXPECTED((redis_sock->serializer != REDIS_SERIALIZER_NONE ||
38863886
redis_sock->compression != REDIS_COMPRESSION_NONE) &&
38873887
redis_sock->pack_ignore_numbers) &&
3888-
srclen > 0 && srclen < 24)
3888+
srclen > 0 && srclen < 512)
38893889
{
38903890
switch (is_numeric_string(src, srclen, &lval, &dval, 0)) {
38913891
case IS_LONG:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.