-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Implement a hardened mode #5090
Comments
That said, I'd love to design and implement a proper hardened mode for the STL and finally finish what Billy tried to get started with |
Duplicate or related to #586. |
More detailed explanation can be found in #4586 (comment). @CaseyCarter Can we add explanation to Wiki now? |
We talked about this at the weekly maintainer meeting. We'd like to hold off on adding any guidance to the wiki, since the whole issue here is that we need to find the time to sit down and properly redesign CDL, answering policy questions like exactly when it's appropriate to add O(1) checks that don't require representation changes (should we do this for all preconditions, or focus on "scary" ones like bounds checks and |
libc++ has implemented a hardened mode that allows applications to enable security checks in production. Would it be possible to add similar functionality to the MSVC STL?
Background:
https://libcxx.llvm.org/Hardening.html
https://security.googleblog.com/2024/11/retrofitting-spatial-safety-to-hundreds.html
I understand that we currently have other avenues to achieve similar results (for example _CONTAINER_DEBUG_LEVEL). Could we get clarity if these can be safely used in production as well?
The text was updated successfully, but these errors were encountered: