Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix potential int overflow in merge chunks #7606

Merged
merged 1 commit into from
Jan 21, 2025

Conversation

erimatnor
Copy link
Contributor

When merging chunks, a relation size calculation could potentially overflow an 32-bit integer value. Use a 64-bit integer for the result to prevent overflow.

When merging chunks, a relation size calculation could potentially
overflow an 32-bit integer value. Use a 64-bit integer for the result
to prevent overflow.
Copy link
Contributor

@pallavisontakke pallavisontakke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

codecov bot commented Jan 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (2.18.x@08050fb). Learn more about missing BASE report.

Additional details and impacted files
@@            Coverage Diff            @@
##             2.18.x    #7606   +/-   ##
=========================================
  Coverage          ?   82.34%           
=========================================
  Files             ?      238           
  Lines             ?    44140           
  Branches          ?    11101           
=========================================
  Hits              ?    36345           
  Misses            ?     3424           
  Partials          ?     4371           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@erimatnor erimatnor merged commit 6f2aa30 into timescale:2.18.x Jan 21, 2025
165 of 168 checks passed
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.

2 participants