News for hackers. Stuff that matters.
Re:45 years since its creation. The C language still very po... by pjmlp on Wednesday May 25, 2016 @01:52AM (#11767901)
> I'm not saying many teams do this, but I am disputing that no teams do this.

If you watch Herb Sutter's talk at CppCon 2015, at a given point he asks the audience how many know and use such tools.

It is one of the most important C++ conferences, usually attended by the most savvy C++ developers in the world, the amount of the audience saying that they do use such tools was ruffly 1%!

1% shows how much the majority of C and C++ developers, or their employers, care about writing proper safe code in those languages.

The only way out is moving to programming languages whose safety must be explicitly turned off, and not having to be explicitly turned on, because most won't bother taking the effort to turning it on.

Re:45 years since its creation. The C language still very po... by jjnoakes on Wednesday May 25, 2016 @03:01PM (#11772221)
No one is arguing that the industry moving to a safer language will reduce the level of nasty bugs in the world. That would be silly to argue against, because that's basically a tautology anyway.

What I'm disputing is that no teams write good C or C++ code.

In fact, the 1% who raised their hands proves my point. It isn't 0%.

That's all I'm saying. Don't smear our names with the "all C and C++ developers write code with exploitable undefined behavior bugs in it" when you mean "most C and C++ developers write code with exploitable undefined behavior bugs in it".

Re:45 years since its creation. The C language still very po... by pjmlp on Thursday May 26, 2016 @02:19AM (#11775957)
C++ is my language to go, every time I need to go out of JVM and .NET ecosystems and I do take all efforts to be part of that 1%.

Once upon a time I gave C++ class to first year students at the university where I took my degree. Worked with C++ at some well known companies and research institutions.

Still, I won't say I never write exploitable undefined behaviour free code in C++, let alone C. Because I cannot control the code that gets used by third party libraries, written by team members or even having the whole UB use cases on my head.

Re:45 years since its creation. The C language still very po... by jjnoakes on Thursday May 26, 2016 @10:05AM (#11778021)
If you use the right tools (static analysis and sanitizers and fuzzers) your own code (and any code you rely on which you have the source for) will be handled.

If you rely on binary dependencies which have quality problems, then u can't help you there. But that could be an attack vector in any language.

And if you are worried about the operating system itself, then there really is no easy way around it unless you want to run a unikernel for everything.

And even then you may hit a CPU microcode bug it hardware bug...