search
HomeTechnology peripheralsIt IndustryThe U.S. government recommends that developers stop using C/C++ and switch to memory-safe programming languages

According to news from this site on February 29, the U.S. government recently released a cybersecurity report calling on developers to stop using programming languages ​​that are prone to memory safety vulnerabilities, such as C and C, and instead use memory-safe programming languages. development. The report was released by the Office of the Cyberspace Director (ONCD) to implement US President Joe Biden’s cybersecurity strategy, with the goal of “protecting the bedrock of cyberspace.”

美国政府建议开发者停止使用 C / C++,转用内存安全编程语言

Memory safety means that a program can effectively avoid potential errors and vulnerabilities when accessing memory, such as buffer overflows and dangling pointers. Java is considered a memory-safe programming language because of its runtime error detection capabilities. In contrast, C and C allow direct access to memory addresses and lack bounds checking, which makes them more prone to memory safety issues. Therefore, when developing applications, choosing the right programming language and adopting corresponding memory management strategies are crucial to ensuring memory safety.

According to research data from Microsoft and Google cited in the report, more than 70% of security vulnerabilities are closely related to memory safety issues. In addition, the report also mentioned the open source software security roadmap released by the U.S. Cybersecurity and Infrastructure Security Agency (CISA), which encourages developers to adopt memory-safe programming languages ​​and implement "security by design" development methods at the early stage of the project. This approach aims to reduce the risk of security vulnerabilities needing to be fixed later by focusing on security in the early stages of software design and development. Therefore, it is crucial to emphasize memory safety during software development, which can effectively reduce potential security vulnerabilities and risks.

The 19-page report aims to emphasize that cybersecurity is not just the responsibility of individuals, but also the shared responsibility of large organizations, technology companies and governments. The report does not recommend a specific programming language to replace C and C, but emphasizes that there are multiple memory-safe programming languages ​​to choose from. The report also calls on businesses and engineers to adopt best software development practices and use memory-safe hardware to reduce the possibility of malicious attacks.

The U.S. National Security Agency (NSA) mentioned some programming languages ​​that are considered safe in a recently released cybersecurity information document. It is worth noting...

  • Rust

  • Go

  • C

  • Java

  • Swift

  • JavaScript

  • ##Ruby

But according to the TIOBE index (a measure of programming language popularity degree indicator), C# ranks 5th in the rankings, Java is 4th, JavaScript is 6th, Go is 8th, Swift is 16th, Rust is 18th, and Ruby is 20th. It can be seen that only 4 of the languages ​​recommended by the NSA are among the most commonly used languages ​​​​by developers.

The report also emphasizes the importance of software security assessment and believes that better assessment standards can help technology companies better plan, predict and mitigate vulnerability risks. The report also highlights the importance of using memory-safe code in critical areas such as space exploration, citing the Apollo 13 moon landing mission as an example.

This report is part of a series of U.S. government cybersecurity initiatives. In March 2023, President Biden signed a cybersecurity executive order aimed at strengthening software and hardware security and establishing partnerships with the technology industry. As digitalization continues to advance, more secure programming languages ​​and development methods have become critical, and this report is the latest move to call on the industry to pay attention to this issue.

The above is the detailed content of The U.S. government recommends that developers stop using C/C++ and switch to memory-safe programming languages. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:IT之家. If there is any infringement, please contact admin@php.cn delete
CNCF Arm64 Pilot: Impact and InsightsCNCF Arm64 Pilot: Impact and InsightsApr 15, 2025 am 08:27 AM

This pilot program, a collaboration between the CNCF (Cloud Native Computing Foundation), Ampere Computing, Equinix Metal, and Actuated, streamlines arm64 CI/CD for CNCF GitHub projects. The initiative addresses security concerns and performance lim

Building a Network Vulnerability Scanner with GoBuilding a Network Vulnerability Scanner with GoApr 01, 2025 am 08:27 AM

This Go-based network vulnerability scanner efficiently identifies potential security weaknesses. It leverages Go's concurrency features for speed and includes service detection and vulnerability matching. Let's explore its capabilities and ethical

Top 10 Best Free Backlink Checker Tools in 2025Top 10 Best Free Backlink Checker Tools in 2025Mar 21, 2025 am 08:28 AM

Website construction is just the first step: the importance of SEO and backlinks Building a website is just the first step to converting it into a valuable marketing asset. You need to do SEO optimization to improve the visibility of your website in search engines and attract potential customers. Backlinks are the key to improving your website rankings, and it shows Google and other search engines the authority and credibility of your website. Not all backlinks are beneficial: Identify and avoid harmful links Not all backlinks are beneficial. Harmful links can harm your ranking. Excellent free backlink checking tool monitors the source of links to your website and reminds you of harmful links. In addition, you can also analyze your competitors’ link strategies and learn from them. Free backlink checking tool: Your SEO intelligence officer

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.