Skip to content

Fix int overflow in Arrow text body buffer computation - #9807

Merged
akuzm merged 4 commits into
mainfrom
aku/body-text
Jun 5, 2026
Merged

Fix int overflow in Arrow text body buffer computation#9807
akuzm merged 4 commits into
mainfrom
aku/body-text

Conversation

@akuzm

@akuzm akuzm commented May 13, 2026

Copy link
Copy Markdown
Member

The PG text values can be up to 1GB in size, so the computation for extending the Arrow text body buffer could overflow. Switch it to use the Size type.

Disable-check: force-changelog-file

The PG text values can be up to 1GB in size, so the computation for
extending the Arrow text body buffer could overflow. Switch it to use
the Size type.
@akuzm
akuzm requested a review from a team May 13, 2026 13:58
@github-actions
github-actions Bot requested review from antekresic and svenklemm May 13, 2026 13:59
@github-actions

Copy link
Copy Markdown

@antekresic, @svenklemm: please review this pull request.

Powered by pull-review

@akuzm akuzm added bug llm-fuzzer Issue fixed found by llm-fuzzer labels May 13, 2026
@codecov

codecov Bot commented May 13, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 66.66667% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
tsl/src/nodes/vector_agg/exec.c 66.66% 0 Missing and 2 partials ⚠️

📢 Thoughts on this report? Let us know!

Comment thread tsl/test/sql/vector_agg_text_overflow.sql
@akuzm akuzm added this to the v2.28.0 milestone May 28, 2026
@akuzm
akuzm enabled auto-merge (squash) June 5, 2026 14:10
@akuzm
akuzm merged commit cd4ca9d into main Jun 5, 2026
58 of 66 checks passed
@akuzm
akuzm deleted the aku/body-text branch June 5, 2026 14:12
timescale-automation pushed a commit that referenced this pull request Jun 8, 2026
The PG text values can be up to 1GB in size, so the computation for
extending the Arrow text body buffer could overflow. Switch it to use
the Size type.

(cherry picked from commit cd4ca9d)
@timescale-automation timescale-automation added the released-2.28.0 Released in 2.28.0 label Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backported-2.27.x bug llm-fuzzer Issue fixed found by llm-fuzzer released-2.28.0 Released in 2.28.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants