Skip to content

MINOR: [C++][Parquet] Avoid int64 overflow in CheckReadRangeOrThrow#50060

Open
metsw24-max wants to merge 1 commit into
apache:mainfrom
metsw24-max:page-index-range-overflow
Open

MINOR: [C++][Parquet] Avoid int64 overflow in CheckReadRangeOrThrow#50060
metsw24-max wants to merge 1 commit into
apache:mainfrom
metsw24-max:page-index-range-overflow

Conversation

@metsw24-max
Copy link
Copy Markdown
Contributor

CheckReadRangeOrThrow adds index_location.offset + length unchecked, so a column-chunk page-index location near INT64_MAX wraps past the bounds check and yields an out-of-range buffer offset at read time; guard it with AddWithOverflow as merge_range already does.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant