4 ms·
In this case Rust (or Go or Java or almost anything other than C/C++) would've caught this error with array/slice bounds checks. The borrow checker is usually m
by oconnor663 4y ago
In this case Rust (or Go or Java or almost anything other than C/C++) would've caught this error with array/slice bounds checks. The borrow checker is usually more concerned with things like use-after-free, where other languages would lean on garbage collection.
- 0x457 4y agoNah, in Rust out-of-bound index would be a panic, which is better than RCE. I don't think SQLite needs to be rewritten in any language, tho.
- oconnor663 4y agoYeah to be clear by "caught" I mean "crashed cleanly at runtime".