Skip to content

Cherry pick #102417 to 26.4: Check for stack overflow in Avro reader - #105349

Merged
robot-ch-test-poll4 merged 12 commits into
backport/26.4/102417from
cherrypick/26.4/102417
May 19, 2026
Merged

robot-ch-test-poll4 merged 12 commits into
backport/26.4/102417from
cherrypick/26.4/102417

Conversation

@robot-ch-test-poll1

Copy link
Copy Markdown
Contributor

Original pull-request #102417

Do not merge this PR manually

This pull-request is a first step of an automated backporting.
It contains changes similar to calling git cherry-pick locally.
If you intend to continue backporting the changes, then resolve all conflicts if any.
Otherwise, if you do not want to backport them, then just close this pull-request.

The check results does not matter at this step - you can safely ignore them.

Troubleshooting

If the conflicts were resolved in a wrong way

If this cherry-pick PR is completely screwed by a wrong conflicts resolution, and you want to recreate it:

  • delete the pr-cherrypick label from the PR
  • delete this branch from the repository

You also need to check the Original pull-request for pr-backports-created label, and delete if it's presented there

The PR source

The PR is created in the CI job

Avogar and others added 11 commits April 10, 2026 17:51
…-reader

# Conflicts:
#	src/Processors/Formats/Impl/AvroRowInputFormat.cpp
The previous commit only constrained schema depth in `AvroRowInputFormat`
and `ConfluentSchemaRegistry`. The same unbounded schema-parse path
existed in the Iceberg Avro readers:
`AvroForIcebergDeserializer` and `forEachAvroEntry` in `Iceberg/Utils`.

Move `MAX_AVRO_SCHEMA_DEPTH` into `AvroRowInputFormat.h` and apply it
to the two Iceberg call sites so the stack-overflow mitigation covers
every Avro reader entry point.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@robot-ch-test-poll1 robot-ch-test-poll1 added pr-cherrypick Cherry-pick of merge-commit before backporting. Do not use manually - automated use only! do not test disable testing on pull request pr-critical-bugfix labels May 19, 2026
…esolve-cherrypick-26.4

# Conflicts:
#	src/Processors/Formats/Impl/AvroConfluentSchemaRegistry.cpp
#	src/Processors/Formats/Impl/AvroRowInputFormat.cpp
#	src/Processors/Formats/Impl/AvroRowInputFormat.h
#	src/Storages/ObjectStorage/DataLakes/Iceberg/Utils.cpp
@robot-ch-test-poll4
robot-ch-test-poll4 merged commit b007f41 into backport/26.4/102417 May 19, 2026
1 check passed
@robot-ch-test-poll4
robot-ch-test-poll4 deleted the cherrypick/26.4/102417 branch May 19, 2026 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not test disable testing on pull request pr-cherrypick Cherry-pick of merge-commit before backporting. Do not use manually - automated use only! pr-critical-bugfix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants