Skip to content

Implement a hardened mode #5090

@tiagomacarios

Description

@tiagomacarios

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?

Metadata

Metadata

Labels

enhancementSomething can be improvedfixedSomething works now, yay!

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions