bevy/crates/bevy_ecs/src
Stepan Koltsov a35a151f47
Fix integer overflow in BlobVec::reserve_exact (#11234)
# Objective

When `BlobVec::reserve` is called with an argument causing capacity
overflow, in release build capacity overflow is ignored, and capacity is
decreased.

I'm not sure it is possible to exploit this issue using public API of
`bevy_ecs`, but better fix it anyway.

## Solution

Check for capacity overflow.
2024-01-06 17:31:01 +00:00
..
entity Replace or document ignored doctests (#11040) 2024-01-01 16:50:56 +00:00
query Replace or document ignored doctests (#11040) 2024-01-01 16:50:56 +00:00
reflect Replace or document ignored doctests (#11040) 2024-01-01 16:50:56 +00:00
schedule Replace or document ignored doctests (#11040) 2024-01-01 16:50:56 +00:00
storage Fix integer overflow in BlobVec::reserve_exact (#11234) 2024-01-06 17:31:01 +00:00
system Print a warning for un-applied commands being dropped from a CommandQueue (#11146) 2024-01-03 15:32:57 +00:00
world Fixed Typo in the description of EntityMut (#11103) 2024-01-01 16:51:25 +00:00
archetype.rs Rename ArchetypeEntity::entity into ArchetypeEntity::id (#11118) 2024-01-01 16:12:24 +00:00
bundle.rs Allow #[derive(Bundle)] on tuple structs (take 3) (#10561) 2023-11-21 01:09:16 +00:00
change_detection.rs Replace or document ignored doctests (#11040) 2024-01-01 16:50:56 +00:00
component.rs Replace or document ignored doctests (#11040) 2024-01-01 16:50:56 +00:00
event.rs Explain EventWriter limits concurrency (#11063) 2023-12-24 17:45:21 +00:00
lib.rs Rename WorldQueryData & WorldQueryFilter to QueryData & QueryFilter (#10779) 2023-12-12 19:45:50 +00:00
removal_detection.rs Remove unnecessary path prefixes (#10749) 2023-11-28 23:43:40 +00:00