diff options
author | Binbin <binloveplay1314@qq.com> | 2022-11-20 18:12:15 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-20 12:12:15 +0200 |
commit | 51887e61b8a0ae36fa977351f34ace3e38efbc29 (patch) | |
tree | 0882ec27cb4cb154d92872ab1a8a9b26bb509c03 /.github | |
parent | 2f411770c85ddfd226c02819c0f98a3f5a7854ac (diff) | |
download | redis-51887e61b8a0ae36fa977351f34ace3e38efbc29.tar.gz |
sanitize dump payload: fix crash with empty set with listpack encoding (#11519)
The following example will create an empty set (listpack encoding):
```
> RESTORE key 0
"\x14\x25\x25\x00\x00\x00\x00\x00\x02\x01\x82\x5F\x37\x03\x06\x01\x82\x5F\x35\x03\x82\x5F\x33\x03\x00\x01\x82\x5F\x31\x03\x82\x5F\x39\x03\x04\xA9\x08\x01\xFF\x0B\x00\xA3\x26\x49\xB4\x86\xB0\x0F\x41"
OK
> SCARD key
(integer) 0
> SRANDMEMBER key
Error: Server closed the connection
```
In the spirit of #9297, skip empty set when loading RDB_TYPE_SET_LISTPACK.
Introduced in #11290
Diffstat (limited to '.github')
0 files changed, 0 insertions, 0 deletions