-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
BinaryHeap integer overflow with ZST? #149448
Copy link
Copy link
Open
Labels
A-ZSTArea: Zero-sized types (ZSTs).Area: Zero-sized types (ZSTs).A-collectionsArea: `std::collections`Area: `std::collections`C-bugCategory: This is a bug.Category: This is a bug.T-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-ZSTArea: Zero-sized types (ZSTs).Area: Zero-sized types (ZSTs).A-collectionsArea: `std::collections`Area: `std::collections`C-bugCategory: This is a bug.Category: This is a bug.T-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
I found this comment in the standard library, indicating that
BinaryHeapcan have an integer overflow with a large collection of ZSTs. This should probably be fixed.rust/library/alloc/src/collections/binary_heap/mod.rs
Lines 788 to 789 in 467250d