You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
-
2This question requires probably a much longer answer than you thought, and some of our hardliners will surely downvote and close-vote it ("needs more focus"). Still, I like it.Doc Brown– Doc Brown2024-06-14 14:42:12 +00:00Commented Jun 14, 2024 at 14:42
-
7Of course its possible to write memory-safe C++ code, you just can't prove that the code is safe using the type system. You can use the type system + linters + sanitizers + fuzzing to reduce the likelihood of memory safety issues. One thing that you're missing is that the smart pointers can still be nullptr, and that vector doesn't do bounds checks. I wouldn't think about rewriting, but about adopting security-conscious modern C++ practices, and about investigating safer languages for future components.amon– amon2024-06-14 15:51:16 +00:00Commented Jun 14, 2024 at 15:51
-
3@JimmyJames. You're right, the remediation needs to make sense to a non-technical audience. There is no immediate consequence of non-compliance, but it can be at some point in future.Dr Phil– Dr Phil2024-06-14 16:50:02 +00:00Commented Jun 14, 2024 at 16:50
-
4If someone nontechnical is feeling alarmed or worried about this report and nobody has identified any specific risks to the business/customers/etc, then it sounds like the most important thing is reassurance, stakeholder management and communication. You could counter this by pointing out that having a system built around unsafe code doesn't necessarily mean any imminent risk to the business - especially if that code has already proven itself over years.Ben Cottrell– Ben Cottrell2024-06-14 19:48:25 +00:00Commented Jun 14, 2024 at 19:48
-
3The key think I would make sure the non-technical stakeholders understand is how disastrously bad it will likely go if you attempted to rewrite the entire application in one shot using another language/platform. If it's decided that a rewrite is needed, the first thing to figure out is how you can do it one piece at a time. Otherwise, you need a mitigation strategy. It might need to be someone's job to implement software security practices. There's a lot of information about the things to look out for with C and C++. Largely because there's a lot to look out for.JimmyJames– JimmyJames2024-06-14 21:58:36 +00:00Commented Jun 14, 2024 at 21:58
|
Show 10 more comments
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
-
create code fences with backticks ` or tildes ~
```
like so
``` -
add language identifier to highlight code
```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible)
<https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. design-patterns), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you
lang-cpp