Skip to content

Conversation

@Mortano
Copy link
Contributor

@Mortano Mortano commented Sep 19, 2025

This fixes UB when using the ArcBlock<T> and BoxBlock<T> types together with the Stack type, as it occurs in the ArcPoolImpl and BoxPoolImpl types. The underlying cause for the UB was a wrongly initialized UnionNode, as was discussed in #605 . This also required that the functions of the Node trait are unsafe, but this should not be a breaking API change as that trait is never exported from the pool module

sgued
sgued previously approved these changes Sep 22, 2025
Copy link
Contributor

@sgued sgued left a comment

Choose a reason for hiding this comment

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

LGTM

Thanks a lot for the audit of the unsafe code. Already yielding results!

@sgued sgued mentioned this pull request Oct 28, 2025
2 tasks
@zeenix zeenix added this pull request to the merge queue Nov 4, 2025
github-merge-queue bot pushed a commit that referenced this pull request Nov 4, 2025
Fix UB in `pool` module when using `ArcBlock<T>` and `BoxBlock<T>`
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 4, 2025
@sgued sgued force-pushed the pool-node-ref-fix branch from 16890c9 to e571afe Compare November 5, 2025 06:40
@sgued sgued enabled auto-merge November 5, 2025 06:42
@sgued sgued requested a review from zeenix November 5, 2025 06:44
@sgued
Copy link
Contributor

sgued commented Nov 5, 2025

There was a rebase conflict that caused the CI to fail. Thanks merge queues for avoiding a broken main. @zeenix can you please re-review ? Since I forced push it doesn't want me to merge alone.

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.

4 participants