Re:There’s a Hole in the Bottom of the C: Effectiveness of A...
by pjmlp on Thursday November 15, 2018 @01:21AM
(#18457294)
On the contrary.
While they aren't Rust level safe, they eliminate like 80% of the common C safety errors.
Thanks to explicit conversions, proper enums, reference parameters, actual string and vector types, memory allocation based on types instead of arbitrary numbers, type safe linkage thanks modules.
So while use after free or double frees would are still an issue, many other classes of typical C errors would be gone.
Re:There’s a Hole in the Bottom of the C: Effectiveness of A...
by pcwalton on Thursday November 15, 2018 @12:19PM
(#18461161)
Conversions and such aren't where the memory-safety-related vulnerabilities in C++ come from nowadays. They come from memory management problems, which Pascal doesn't help with.
Re:There’s a Hole in the Bottom of the C: Effectiveness of A...
by pjmlp on Thursday November 15, 2018 @04:49PM
(#18463749)
Moving goal posts here? I thought we were speaking about C.
Yes Rust is great and all, sometimes getting people half-way is better than not at all.
Re:There’s a Hole in the Bottom of the C: Effectiveness of A...
by andrewflnr on Thursday November 15, 2018 @07:53PM
(#18465172)
He probably meant to type C/C++ or something but typo'd it. The set of vulnerabilities is exactly the same. If Pascal still lets you do heap corruption, it's only a matter of time before RCEs become common. So yeah, I'm convinced on that point.
With a properly designed programming environment, you don't need many bounds checks to begin with. Almost every embedded system can easily afford the cost of the few you can't eliminate.