Re:A Guide to Undefined Behavior in C and C++ (2010)
by xmiller on Sunday November 04, 2018 @05:17AM
(#18375163)
Are there any large programs like BIND written in Rust? If so, what is their actual security record?
[ Parent
| on HN ]
Re:A Guide to Undefined Behavior in C and C++ (2010)
by jcranmer on Sunday November 04, 2018 @09:03AM
(#18375899)
Several bits of Firefox are written in Rust now. Looking through the bug reports, there has yet to be any CVE in any of the Rust-rewritten components.
Re:A Guide to Undefined Behavior in C and C++ (2010)
by nickpsecurity on Sunday November 04, 2018 @12:23PM
(#18376906)
TrustDNS is one in that space. We won't know for a while what actual, security record is. We do have some evidence from fuzzing where it led to panics vs worse effects in C. I think an objective test would compare effects of fuzzing Rust and C libraries to see how often Rust just panicked. The study should use different types of libraries that use the language in different ways. If Rust's claims are true, most problems will involve 3rd-party libraries that aren't Rust, unsafe Rust, and/or compiler errors that break safety. People doing the study could just grab popular C apps vs similar stuff in Rust on Github that's actually maintained. Also, look at amateurish and unmaintained stuff to see if those still have minimal vulnerabilities.
That's how I'd do it anyway.
Re:A Guide to Undefined Behavior in C and C++ (2010)
by pjmlp on Sunday November 04, 2018 @07:05AM
(#18375477)
There is a whole OS, good enough?
Re:A Guide to Undefined Behavior in C and C++ (2010)
by gbw on Sunday November 04, 2018 @08:39AM
(#18375798)
If you mean Redox, that is hardly a production OS (yet).
People don't have infinite time and only search for security issues in software that's actually in use.
Which is one of the reasons that C/C++ appear more often in CVEs.
Re:A Guide to Undefined Behavior in C and C++ (2010)
by pjmlp on Sunday November 04, 2018 @09:01AM
(#18375893)
The OP asked for an example of a large program like BIND, I gave him/her an OS, which naturally also contains something like BIND, but apparently we now move the goal posts for how much users it has.
I love how people hand have the fact that even projects like the Linux kernel, with their stringent processes aren't able to avoid CVEs, to the point it became the major focus of Linux Kernel Security Summit 2018.
Yet we all know that only newbies do major errors in C. /s
Re:A Guide to Undefined Behavior in C and C++ (2010)
by sethammons on Sunday November 04, 2018 @08:10AM
(#18375683)
Depends on popularity and use.
Re:A Guide to Undefined Behavior in C and C++ (2010)
by pjmlp on Sunday November 04, 2018 @09:19AM
(#18375959)
The question was about an example for a large program like BIND.
Re:A Guide to Undefined Behavior in C and C++ (2010)
by sureaboutthis on Sunday November 04, 2018 @08:25AM
(#18375741)
Which one?