gz / rust-elfloader

Library to load and relocate ELF files.
https://docs.rs/elfloader
Apache License 2.0
117 stars 23 forks source link

chore: mark `ElfLoader::load` as unsafe #20

Closed toku-sa-n closed 3 years ago

toku-sa-n commented 3 years ago

This method assumes that the memory is allocated by ElfLoader::allocate, but the compiler can't ensure it. Without calling it, the program may violate memory safety by, e.g., modifying memory used by others.