Skip to Main Content

MongoByte MongoDB Logo

Welcome to the new MongoDB Feedback Portal!

{Improvement: "Your idea"}
We’ve upgraded our system to better capture and act on your feedback.
Your feedback is meaningful and helps us build better products.

Status Submitted
Categories Database
Created by Guest
Created on Apr 25, 2023

Improve fortification coverage with _FORTIFY_SOURCE=3

MongoDB Server codebase uses `_FORTIFY_SOURCE=2` fortification level (e.g. see v7.0, latest at the moment: https://github.com/mongodb/mongo/blob/v7.0/SConstruct#L4698). Consider changing it to a new fortification level (`_FORTIFY_SOURCE=3`) provided by GCC 12 to improve DB's security. See also: https://fedoraproject.org/wiki/Changes/Add_FORTIFY_SOURCE%3D3_to_distribution_build_flags https://developers.redhat.com/articles/2022/09/17/gccs-new-fortification-level
  • Attach files