Repository navigation
Backport #115702 to 26.3: Fix integer overflow in String deserialization - #118199
Conversation
|
Workflow [BackportPR], commit [6d80565] Summary: ✅ |
|
TL;DR: this backport is missing one hunk that the 26.7 twin (#118201) has — the 128-bit guard on the The target branch carries the same untrusted-sizes overflow the PR fixes elsewhere, in the skipped-prefix path ( #118201 adds exactly this guard ( |
Port the same branch-only adaptation as the 26.6 and 26.7 twins (#118200, #118201), as requested in the review of this PR: - `deserializeBinaryBulkWithSizeStream`: accumulate the sizes of the rows skipped by `rows_offset` in 128 bits and reject a sum above `MAX_TOTAL_STRING_SIZE` with `INCORRECT_DATA`. The skipped prefix comes from the same untrusted sizes stream, so an unchecked `size_t` sum could wrap and make `ignore` skip a wrong number of bytes, yielding silently wrong string data instead of a rejection. - `expectSizesStreamRejected` takes `rows_offset`, and the new gtest `WithSizeStreamHugeSkippedSizeIsRejected` covers the skipped-prefix path. PR: #118199 Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
🕵 Thanks, ported in 6d80565: |
Original pull-request #115702
Cherry-pick pull-request #118146
This pull-request is a last step of an automated backporting.
Treat it as a standard pull-request: look at the checks and resolve conflicts.
Merge it only if you intend to backport changes to the target branch, otherwise just close it.
The PR source
The PR is created in the CI job
Version info
26.3.32.8