Comments (2)
Thanks for filing an issue!
This particular behavior is expected, although we could maybe have a better panic message and need to add a section to the docs explaining that this can happen.
One can use try_with_capacity
to handle OOM.
Can you share the fuzz target you've written? Could be good to get cargo fuzz
fuzz targets committed in the repo, but I'm also just curious about the approach you've taken.
from bumpalo.
@fitzgen Thanks for your reply!
I place the replay code on replay_files.
The file contains three lines of code, but the bug is triggered in the first line of code.
The reported bug is in lib.rs: 468 where the code is
It uses unwrap()
on Err
returned by Layout::from_size_align
.
from bumpalo.
Related Issues (20)
- When can we expect a new release? HOT 1
- feat: expose constant ABOUT_ONE_PAGE or similar HOT 6
- MSRV build is broken HOT 2
- Missing Clone for Box HOT 2
- Add rust-version to Cargo.toml HOT 1
- Request to yank bumpalo v3.12.1 HOT 1
- Implement `std::io::Write` for `Vec<'bump, u8>` HOT 1
- Add a `bumpalo::collections::ThinSlice` type HOT 1
- Memory leak may happen after calling `Bump::dealloc`. HOT 2
- `Box::pin_in` violates pin's drop guarantee HOT 1
- `allocator_api` tests failing HOT 2
- Remove a branch from `try_alloc_layout`? HOT 3
- Improve performance of `extend_from_slice` where `T: Copy` HOT 4
- Ability to create Bump from pre-existing memory allocation? HOT 9
- MSRV disagrees between Cargo.toml and CHANGELOG.md HOT 2
- Minimum alignment HOT 3
- Analysis of Bump Allocator Performance HOT 1
- `Bump` not respecting allocation limit set HOT 4
- Execution of test cases at a particular compilation optimization level appears to be stack overflow
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bumpalo.