Skip to content

Backport #127593 to 26.10: Pad the buffer an Azure read owns with PADDING_FOR_SIMD - #133226

Merged
clickhouse-gh[bot] merged 1 commit into
26.10from
backport/26.10/127593-azure-padding
Nov 20, 2026
Merged

clickhouse-gh[bot] merged 1 commit into
26.10from
backport/26.10/127593-azure-padding

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Backport of #127593 to 26.10: pad the buffer owned by ReadBufferFromAzureBlobStorage with PADDING_FOR_SIMD (use Memory<> instead of std::vector<char>).

Without it, text-format parsers that rely on memcpySmallAllowReadWriteOverflow15 read past the end of the buffer. The missing backport showed up as an ASan heap-buffer-overflow in readEscapedStringIntoImpl (buffer allocated in the ReadBufferFromAzureBlobStorage constructor) on the backport PR #133176:
https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=133176&sha=14e68aa1bdb5b1fe07c40ed4f0f31c1e852d1ff4&name_0=BackportPR&name_1=Stateless%20tests%20%28amd_asan_ubsan%2C%20distributed%20plan%2C%20parallel%29

Related: #127593
Related: #133176

Changelog category (leave one):

  • Bug Fix (user-visible misbehavior in an official stable release)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Fix a heap-buffer-overflow when parsing text formats read from Azure Blob Storage.

🤖 Generated with Claude Code

Version info

  • Merged into: 26.10.9.8

Pad the buffer an Azure read owns with PADDING_FOR_SIMD

(cherry picked from commit 6f2ed95)
@clickhouse-gh

clickhouse-gh Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [6d6d582]

Summary: ✅

@clickhouse-gh clickhouse-gh Bot added the comp-azure Azure Blob Storage integration (credentials, multipart, Azure-specific IO). label Nov 20, 2026
@clickhouse-gh
clickhouse-gh Bot merged commit acf0071 into 26.10 Nov 20, 2026
54 of 56 checks passed
@clickhouse-gh
clickhouse-gh Bot deleted the backport/26.10/127593-azure-padding branch November 20, 2026 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-azure Azure Blob Storage integration (credentials, multipart, Azure-specific IO).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants