TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

ISO C++ Directions Group response to RFI on open source software security

3 pointsby alilleybrinkerover 1 year ago

2 comments

trealiraover 1 year ago
From the response:<p><i>Much of the criticism of C++ is based on code that is written in older styles, or even in C, that do not use the modern facilities aimed to increase type-and-resource safety. Also, the C++ eco system offers a large number of static analysis tools, memory use analysers, test frameworks and other sanity tools.</i><p>I often hear comments like this from proponents of modern C++, comments that imply that anachronistic C++ is to blame for CVEs written in it. However, it can be tricky even in &quot;modern&quot; C++ to avoid causing use-after-free errors and memory corruption. First example is this post, discussing something that was assumed to be a GCC bug that actually just shows how unintuitive lambdas and coroutines can be when mixed together:<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=33084431">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=33084431</a><p>And these are two memory safety errors (in Chromium and Edge, respectively) that are written in what looks to be modern C++:<p><a href="https:&#x2F;&#x2F;bugs.chromium.org&#x2F;p&#x2F;chromium&#x2F;issues&#x2F;detail?id=1027152" rel="nofollow noreferrer">https:&#x2F;&#x2F;bugs.chromium.org&#x2F;p&#x2F;chromium&#x2F;issues&#x2F;detail?id=102715...</a><p><a href="https:&#x2F;&#x2F;microsoftedge.github.io&#x2F;edgevr&#x2F;posts&#x2F;memory-corruption-vulnerabilities-in-edge&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;microsoftedge.github.io&#x2F;edgevr&#x2F;posts&#x2F;memory-corrupti...</a>
评论 #38578839 未加载
trealiraover 1 year ago
For context, this is what they&#x27;re replying to: <a href="https:&#x2F;&#x2F;www.federalregister.gov&#x2F;documents&#x2F;2023&#x2F;08&#x2F;10&#x2F;2023-17239&#x2F;request-for-information-on-open-source-software-security-areas-of-long-term-focus-and-prioritization" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.federalregister.gov&#x2F;documents&#x2F;2023&#x2F;08&#x2F;10&#x2F;2023-17...</a>