Binbin 518f0bf79b
Fix limit undefined behavior crash in CLUSTER SLOT-STATS (#709)
We did not set a default value for limit, but it will be used
in addReplyOrderBy later, the undefined behavior may crash the
server since the value could be negative and crash will happen
in addReplyArrayLen.

An interesting reproducible example (limit reuses the value of -1):
```
> cluster slot-stats orderby key-count desc limit -1
(error) ERR Limit has to lie in between 1 and 16384 (maximum number of slots).
> cluster slot-stats orderby key-count desc
Error: Server closed the connection
```

Set the default value of limit to 16384.

---------

Signed-off-by: Binbin <binloveplay1314@qq.com>
2024-06-28 08:02:52 -07:00
..
2024-06-07 01:40:55 +02:00
2024-04-15 14:25:33 +02:00
2024-04-16 21:17:38 +02:00
2024-06-07 01:40:55 +02:00
2024-06-07 01:40:55 +02:00
2024-06-07 01:40:55 +02:00
2024-05-17 13:35:31 +02:00