Yes; and the rewrite can take into account the logic used in the old code (especially in the security-critical areas) as well as all the vulnerabilities that have happened before. You&#x27;re not starting from a complete blank slate; you can pick up the lessons learned.<p>Despite being &quot;battle tested&quot;, all of these C programs continue to have both memory and logic errors. I think a rewrite would have the same rate of new logic issues after the initial code review and testing. &quot;bugs will always exist&quot; -- sure, so if we have something that eliminates a class of bugs, why not use it? The other classes of bugs will be there (and probably in the same force) whether you rewrite or not.<p>A lot of these bugs get <i>introduced</i> due to cruft in old code as well. So there are a bunch of tradeoffs here.