Comment Comment by adwn > abusing a vector in this way is not a safe interface and is instead a good way to introduce several memory safety bugs (for example, UAFs)No, as long as you don't use the unsafe keyword, an out-of-bounds vector access won't lead to use-after-free or other memory safety bugs. parent adwn 2 years ago
No, as long as you don't use the unsafe keyword, an out-of-bounds vector access won't lead to use-after-free or other memory safety bugs.