Skip to content

Max iterations config - #131

Merged
ashtul merged 3 commits into
masterfrom
max-iterations-config
Oct 15, 2019
Merged

ashtul merged 3 commits into
masterfrom
max-iterations-config

Conversation

@ashtul

@ashtul ashtul commented Oct 12, 2019

Copy link
Copy Markdown
Contributor

No description provided.

@codecov

codecov Bot commented Oct 12, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #131 into master will increase coverage by 0.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #131      +/-   ##
==========================================
+ Coverage   97.51%   97.52%   +0.01%     
==========================================
  Files           9        9              
  Lines        1407     1417      +10     
==========================================
+ Hits         1372     1382      +10     
  Misses         35       35

mnunberg
mnunberg previously approved these changes Oct 15, 2019
@ashtul

ashtul commented Oct 15, 2019

Copy link
Copy Markdown
Contributor Author

@mnunberg had to merge to master first :(

@ashtul
ashtul merged commit ee6a958 into master Oct 15, 2019
@ashtul
ashtul deleted the max-iterations-config branch October 15, 2019 11:43
gabsow added a commit that referenced this pull request Jul 23, 2026
* Cp/mod 13409 2.4 (#131)

* MOD-13409 Validate Bloom RDB bitset size on load (#126)

* MOD-13409 Validate Bloom RDB bitset size on load

Reject crafted module payloads where the loaded bloom bitset buffer length does not match the declared bits/n2, and add a flow regression test covering RESTORE with a corrupted DUMP payload.

* MOD-13409 clang-format rebloom.c

Run clang-format on rebloom.c to satisfy make lint formatting checks.

* MOD-13409 Validate Bloom RDB bitset length on load

Reject crafted module payloads where persisted bits do not match the loaded bitset buffer length, preventing OOB access after RESTORE.

(cherry picked from commit ecbdc81)

* Mod 13409 rdb hardening (#127)

* MOD-13409 clang-format rebloom.c

Run clang-format on rebloom.c to satisfy make lint formatting checks.

* MOD-13409 Harden CF RDB load buffer validation

Replace assert-only checks in CFRdbLoad with explicit validation of loaded sizes and ranges, and add a flow test that corrupts a CF DUMP payload to ensure RESTORE is rejected.

* MOD-13409 Harden remaining RDB loaders (TDigest)

TDigest RDB loading trusted attacker-controlled cap, which could desync the allocated centroid arrays from the loaded metadata and enable OOB access after RESTORE.

Reject payloads where loaded cap differs from the allocated cap derived from compression, validate node counters, and add a flow regression that corrupts a TDigest DUMP payload and asserts RESTORE is rejected.

With the earlier BF/CF fixes, this covers all remaining module data structures that load raw buffers from RDB/RESTORE (CMS/TopK already validate buffer sizes).

* Revert "MOD-13409 clang-format rebloom.c"

This reverts commit 456e53503f51b68c4d7a9df988e50a36adf2e61a.

(cherry picked from commit a4b4f80)

* MOD-13409 Format RDB backport

* MOD-13409 Free Cuckoo filter on RDB load errors

* Bump version to 2.4.26

* Fix TDigest RDB load node count overflow check

Avoid signed overflow when validating merged and unmerged node counts by widening the addition.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants