Skip to content

Lint for large stack allocated values #6555

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
huonw opened this issue May 17, 2013 · 1 comment
Closed

Lint for large stack allocated values #6555

huonw opened this issue May 17, 2013 · 1 comment

Comments

@huonw
Copy link
Member

huonw commented May 17, 2013

It seems feasible to warn when huge data-structures are going to be stack-allocated, leading to overflows and segfaults. (e.g. http://stackoverflow.com/questions/16601160/multidimensional-vectors-in-rust-segfaulting)

@thestinger
Copy link
Contributor

This is just a compiler bug, we shouldn't ever be crashing on huge data structures on the stack. The worst-case scenario should be out-of-memory or the current 1GiB stack limit since Rust can grow the stack.

flip1995 pushed a commit to flip1995/rust that referenced this issue Jan 30, 2021
Remove duplication in the manual_ok_or lint example

changelog: none
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

No branches or pull requests

2 participants