Skip to content

comment out checked condition - LGTM - #129

Merged
ashtul merged 3 commits into
masterfrom
last-lgtm-warning
Oct 15, 2019
Merged

ashtul merged 3 commits into
masterfrom
last-lgtm-warning

Conversation

@ashtul

@ashtul ashtul commented Oct 12, 2019

Copy link
Copy Markdown
Contributor

No description provided.

@ashtul
ashtul requested a review from gkorland October 12, 2019 08:58
@codecov

codecov Bot commented Oct 12, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #129 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master     #129   +/-   ##
=======================================
  Coverage   87.73%   87.73%           
=======================================
  Files          15       15           
  Lines        1998     1998           
=======================================
  Hits         1753     1753           
  Misses        245      245

@lgtm-com

lgtm-com Bot commented Oct 12, 2019

Copy link
Copy Markdown

This pull request fixes 1 alert when merging 660f265 into 174e9de - view on LGTM.com

fixed alerts:

  • 1 for Comparison result is always the same

Comment thread contrib/bloom.c Resolved
@ashtul
ashtul requested a review from gkorland October 13, 2019 08:49
@gkorland
gkorland self-requested a review October 15, 2019 13:54
@ashtul
ashtul merged commit 111e350 into master Oct 15, 2019
@ashtul
ashtul deleted the last-lgtm-warning branch October 15, 2019 14:06
@lgtm-com

lgtm-com Bot commented Oct 15, 2019

Copy link
Copy Markdown

This pull request fixes 1 alert when merging 82cec57 into ee6a958 - view on LGTM.com

fixed alerts:

  • 1 for Comparison result is always the same

gabsow added a commit that referenced this pull request Jul 23, 2026
* Cp/mod 13409 2.8 (#129)

* 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

* Bump version to 2.8.23

* 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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants