3 ms·
enumerating_parser look_ma_no_memory_safety(something, -1); // pos never == end So use unsigned len or add more code to check your inputs or just use Rust wher
by topspin 10y ago
enumerating_parser look_ma_no_memory_safety(something, -1); // pos never == end
So use unsigned len or add more code to check your inputs or just use Rust where this sort of unsafe pointer arithmetic doesn't even compile.
- fsloth 10y agoYes, actual memory safety is a feature that Rust has, and C++ has lots of footguns. It still does not make using an enumerator correctly any harder.