post/cplus

White House urges developers to avoid C and C++, use memory-safe' programming languages

C++ Image

C++ is not a memory-safe language, and we're no longer being forced to use it.

2024-3-2

Memory safety refers to protection from bugs and vulnerabilities which deal with memory access. Buffer overflows and dangling pointers are examples of this. Java is considered a memory-safe language due to its runtime error detection checks. However, C and C++ both allow arbitrary pointer arithmetic with direct memory addresses and no bounds checking.

NSA Suggested Memory-Safe Programming Languages

  • Rust
  • Go
  • C#
  • Java
  • Swift
  • JavaScript
  • Ruby
  • Python
  • Delphi/Object Pascal
  • Ada