Skip to content
This repository was archived by the owner on Apr 14, 2025. It is now read-only.

Fix unsound problem in Row::row_unchecked #5

Merged
merged 2 commits into from
Jul 9, 2024
Merged

Conversation

safe4u
Copy link

@safe4u safe4u commented Jul 7, 2024

Hi, thanks for your folk of arrow and best wishes first.

We have found a simple unsound problem in ::compute::sort::row::Rows.
The function Rows::row_unchecked is wrongly marked as safe, which would confuse the boundary between safe and unsafe Rust.

Since the repository of arrow2 have been archived, we cannot create any issue report. So we directly open this PR to mark the function row_unchecked as 'unsafe' and add a debug_assert! macro for safety consideration.

Copy link
Member

@emilk emilk left a comment

Choose a reason for hiding this comment

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

Good call; thank you!

@emilk
Copy link
Member

emilk commented Jul 8, 2024

Merge in master to fix (most of) CI

@emilk emilk merged commit 65da4f3 into rerun-io:main Jul 9, 2024
18 of 19 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants