Skip to content

Conversation

@ielashi
Copy link
Contributor

@ielashi ielashi commented Jan 22, 2024

In the example discussed in #168, we realized that Vec silently accepts elements that are larger than the MAX_SIZE, which can cause data corruption. The more rigorous way around this problem is by panicking whenever a caller attempts to store an element that's too big in the Vec.

@ielashi ielashi enabled auto-merge (squash) January 22, 2024 10:41
@ielashi ielashi merged commit cbacd26 into main Jan 22, 2024
@ielashi ielashi deleted the ielashi/vec_panic branch January 22, 2024 10:45
ielashi added a commit that referenced this pull request Jan 22, 2024
Releasing a new version of the library with the fix in #180.
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.

2 participants