Skip to content

RED-180951 RED-181297 RED-184457 RED-184456 RED-184458 RED-184459 fixing bugs and improving the code - #1002

Merged
gabsow merged 1 commit into
8.8from
lili_8.8_avivd
May 5, 2026
Merged

gabsow merged 1 commit into
8.8from
lili_8.8_avivd

Conversation

@AvivDavid23

@AvivDavid23 AvivDavid23 commented May 5, 2026 •

Copy link
Copy Markdown
Contributor

Made with Cursor


Note

Medium Risk
Touches RDB deserialization paths for multiple data structures; while primarily adding validation/overflow guards, mistakes could reject previously-loadable data or cause load failures on edge cases.

Overview
Improves RDB load hardening across Bloom, Cuckoo, CMS, TopK, and TDigest by adding explicit integrity/size checks and overflow/zero guards before trusting loaded fields or buffers.

Bloom RDB loading now validates bit-buffer sizing and runs bloom_validate_integrity; Cuckoo rejects zero numFilters/numBuckets; CMS and TopK validate expected serialized buffer lengths (and TopK adds multiplication overflow checks and safer cleanup on failure); TDigest validates merged_nodes bounds before reading centroid arrays. Tests add RESTORE-based regression cases to ensure malformed payloads fail with “Bad data format”.

Reviewed by Cursor Bugbot for commit 33982e7. Bugbot is set up for automated code reviews on this repo. Configure here.

…ing bugs and improving the code

Co-authored-by: Cursor <[email protected]>
@sonarqubecloud

sonarqubecloud Bot commented May 5, 2026

Copy link
Copy Markdown

@gabsow
gabsow merged commit 8321f37 into 8.8 May 5, 2026
13 of 58 checks passed
@gabsow
gabsow deleted the lili_8.8_avivd branch May 5, 2026 05:21

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 3 potential issues.

Fix All in Cursor

Reviewed by Cursor Bugbot for commit 33982e7. Configure here.

Comment thread src/rm_cms.c Resolved
Comment thread src/rm_tdigest.c Resolved
Comment thread src/rm_topk.c Resolved
YaacovHazan pushed a commit to redis/redis that referenced this pull request May 14, 2026
JSON - 8.7.91:
* Cherry-pick bug fixes to 8.8 (RedisJSON/RedisJSON#1557)
* MOD-6722 Fix mutation ordering for array commands with recursive paths
(RedisJSON/RedisJSON#1543)
* MOD-7266 make sure to end() deserialization, to disallow trailing c…
(RedisJSON/RedisJSON#1554)
* MOD-14664 Json Path evaluation - Allow multi-result nodelists in filt…
(RedisJSON/RedisJSON#1542)

Bloom - 8.7.91
* Lili: RED-180951 RED-181297 RED-184457 RED-184456 RED-184458
RED-184459 fixing bugs and improving the code
(RedisBloom/RedisBloom#1002)
* MOD-14675 - refresh os list to 8.8 (RedisBloom/RedisBloom#976)

Time Series - 8.7.91:
* MOD-15262 - Align TimeSeries with the RedisModule_GetUserUserName API…
(RedisTimeSeries/RedisTimeSeries#1985)
* MOD-14420 fix count reducers return wrong NaN
(RedisTimeSeries/RedisTimeSeries#2013)
(RedisTimeSeries/RedisTimeSeries#2016)
* Lili- RED-180951 RED-180027 fixing bugs and improving the code
(RedisTimeSeries/RedisTimeSeries#2003)
* MOD-14674 - refresh os list to 8.8
(RedisTimeSeries/RedisTimeSeries#1946)
hanzo-dev pushed a commit to hanzoai/redis that referenced this pull request Sep 11, 2026
JSON - 8.7.91:
* Cherry-pick bug fixes to 8.8 (RedisJSON/RedisJSON#1557)
* MOD-6722 Fix mutation ordering for array commands with recursive paths
(RedisJSON/RedisJSON#1543)
* MOD-7266 make sure to end() deserialization, to disallow trailing c…
(RedisJSON/RedisJSON#1554)
* MOD-14664 Json Path evaluation - Allow multi-result nodelists in filt…
(RedisJSON/RedisJSON#1542)

Bloom - 8.7.91
* Lili: RED-180951 RED-181297 RED-184457 RED-184456 RED-184458
RED-184459 fixing bugs and improving the code
(RedisBloom/RedisBloom#1002)
* MOD-14675 - refresh os list to 8.8 (RedisBloom/RedisBloom#976)

Time Series - 8.7.91:
* MOD-15262 - Align TimeSeries with the RedisModule_GetUserUserName API…
(RedisTimeSeries/RedisTimeSeries#1985)
* MOD-14420 fix count reducers return wrong NaN
(RedisTimeSeries/RedisTimeSeries#2013)
(RedisTimeSeries/RedisTimeSeries#2016)
* Lili- RED-180951 RED-180027 fixing bugs and improving the code
(RedisTimeSeries/RedisTimeSeries#2003)
* MOD-14674 - refresh os list to 8.8
(RedisTimeSeries/RedisTimeSeries#1946)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants