Skip to content

Guard time bucket parameter handling against bad input#9708

Open
svenklemm wants to merge 1 commit intomainfrom
sven/cagg
Open

Guard time bucket parameter handling against bad input#9708
svenklemm wants to merge 1 commit intomainfrom
sven/cagg

Conversation

@svenklemm
Copy link
Copy Markdown
Member

Reading the time bucket parameters of a continuous aggregate could
read from a NULL pointer when the timezone or offset argument was a
NULL constant, and could read past the end of the argument list when
the function had fewer than two arguments. Skip the read when the
constant is NULL, and check the number of arguments before accessing
them.

Reading the time bucket parameters of a continuous aggregate could
read from a NULL pointer when the timezone or offset argument was a
NULL constant, and could read past the end of the argument list when
the function had fewer than two arguments. Skip the read when the
constant is NULL, and check the number of arguments before accessing
them.
@svenklemm svenklemm requested a review from a team May 2, 2026 08:51
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 2, 2026

@kpan2034, @natalya-aksman: please review this pull request.

Powered by pull-review

@codecov
Copy link
Copy Markdown

codecov Bot commented May 2, 2026

Codecov Report

❌ Patch coverage is 50.00000% with 5 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
tsl/src/continuous_aggs/common.c 50.00% 2 Missing and 3 partials ⚠️

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant