Speykious / cve-rs

Blazingly 🔥 fast 🚀 memory vulnerabilities, written in 100% safe Rust. 🦀
Other
3.72k stars 94 forks source link

Refs #20

Open 5GameMaker opened 4 months ago

5GameMaker commented 4 months ago

It's fearless, it's concurrent, and it's repr C.

For people who want to do manual memory management, there are now new and free functions which return and accept Ref<T>. Those functions replicate how those work in C, allowing free moving and mutating.

Essentially Ref<T> disables borrow checker. This addresses the criticism of Rust being a difficult to use language due to borrow checker enforcing safety rules, which, as we can deduce from the amount of memory-management-related CVEs, is a hard thing for human beings to manage.

5GameMaker commented 4 months ago

Correction: new is a C++ feature

Bright-Shard commented 4 months ago

Since this library is extremely popular, we need to keep safety and speed as top priorities, but also code quality :)

(this is definitely real logic and not just me giving you a hard time)