Skip to content

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