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

bounded: make sure lap does not overflow into index #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

bounded: make sure lap does not overflow into index #12

wants to merge 1 commit into from

Conversation

link2xt
Copy link

@link2xt link2xt commented May 15, 2021

.wrapping_add() is not enuough to ensure this, it is possible to end
up with index=1 if usize overflows. This is unlikely on 64-bit
systems, but possible on 32-bit systems.

.wrapping_add() is not enuough to ensure this, it is possible to end
up with index=1 if usize overflows. This is unlikely on 64-bit
systems, but possible on 32-bit systems.
@fogti
Copy link
Member

fogti commented Nov 16, 2023

this is still a problem, right? is it possible to build a test case that triggers this when running a 32bit application on 64bit or PAE kernel with enough RAM and maybe a list containing only ZST elements?

@notgull
Copy link
Member

notgull commented Nov 17, 2023

I think this is still an issue? #11 was already closed, but I'd like a test (and ideally a 32-bit-CI-run) that indicates that this is an issue.

@notgull
Copy link
Member

notgull commented Nov 18, 2023

@taiki-e I know that this crate is essentially a fork of crossbeam-queue, does crossbeam need something like this on 32-bit systems?

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

Successfully merging this pull request may close these issues.

3 participants