Skip to content

Backport #115669 to 26.7: Fix out-of-bounds read in formatRowNoNewline with empty rows - #115731

Merged
clickhouse-gh[bot] merged 1 commit into
26.7from
backport/26.7/115669
Aug 21, 2026
Merged

clickhouse-gh[bot] merged 1 commit into
26.7from
backport/26.7/115669

Conversation

@robot-clickhouse-ci-2

@robot-clickhouse-ci-2 robot-clickhouse-ci-2 commented Aug 21, 2026 •

Copy link
Copy Markdown
Contributor

Original pull-request #115669

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

  • Merged into: 26.7.5.11

@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-bugfix Pull request with bugfix, not backported by default labels Aug 21, 2026
@clickhouse-gh

clickhouse-gh Bot commented Aug 21, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [937bf5c]

Summary: ✅

@clickhouse-gh
clickhouse-gh Bot merged commit 1864714 into 26.7 Aug 21, 2026
38 of 39 checks passed
@clickhouse-gh
clickhouse-gh Bot deleted the backport/26.7/115669 branch August 21, 2026 08:12
alexey-milovidov added a commit that referenced this pull request Aug 27, 2026
…lization

A typed path of a `JSON` type recurses back into `SerializationObject::deserializeBinary`
directly, without passing through `SerializationDynamic`, and the nesting depth of such a type
comes from the data (the binary encoding of a `Dynamic` value starts with the encoding of its
type). So the stack size checks in `SerializationObject::deserializeBinary` were not redundant
after all: they are restored, and `05033_row_binary_huge_string_size` now covers a
`Dynamic` value with a deeply nested typed-path `JSON` type, which has to be rejected with
`TOO_DEEP_RECURSION` instead of exhausting the stack.

Also adapt the new tests to the current master: `rows_offset` was removed from the
deserialization API in #115731, which makes the skipped-prefix validation and its unit test moot.

https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=115702&sha=latest&name_0=PR

Co-Authored-By: Claude Fable 5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-bugfix Pull request with bugfix, not backported by default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants