Repository navigation
Validate values of deserialized gini states - #130488
Conversation
`deserialize` skipped the checks done by `add`, so a crafted state with negative or infinite values reached signed integer overflow in `getResult`. Share one validator between both paths. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Workflow [PR], commit [37a63c5] Summary: ✅
AI ReviewSummaryThe PR validates deserialized Final VerdictStatus: ✅ Approve |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Slowest function optimization changes (ThinLTO)Median per-function time ratio to the master baseline:
Compile time of recompiled translation units7 translation units recompiled, 10 s compile time in total, 7 of them have a recent master baseline. |
Backport #130488 to 26.8: Validate values of deserialized `gini` states
Backport #130488 to 26.10: Validate values of deserialized `gini` states
Backport #130488 to 26.9: Validate values of deserialized `gini` states
ginichecked values for being negative, infinite or NaN only inadd, not when loading a serialized state. A crafted state with negative or infinite values got past these checks and caused signed integer overflow when computing the result, which is undefined behavior. One shared check now covers both paths.Related: #114643
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Aggregate function
gininow validates values when reading a serialized state, rejecting negative and infinite values (and NaN) the same way as ordinary input.Workflow [PR]
Sync PR [sync-upstream/pr/130488]
Version info
26.11.1.1962-master(included in26.11and later)