Hacker News new | ask | show | jobs
by UncleEntity 1647 days ago
Maybe someday I’ll write an Earley parser in rust to figure it out (and I like writing Earley parsers and not actually using them).

What gets my goat is people saying it is a crime against humanity to write code in C++ instead of rust because reasons.

1 comments

let's check out https://googleprojectzero.blogspot.com/2021/12/a-deep-dive-i..., which has probably been used to enable "crimes against humanity". integer overflow results in undersized allocation which is indexed out of bounds. if c++ had either overflow checks or bounds checking as the default, how likely is this bug to happen?