README.md

Elfedit, a fast library for editing ELF files

Feel free to contribute to this project, the license is GPL 3.0 or later.

Use of unsafe

For performance reasons, this crate maps the ELF files in memory and reads various fields directly from that memory. This is typically a highly unsafe thing to do, especially when the offsets in the file are given by the file itself.

In particular, the memory alignment of various fields and structs in the ELF format is carefully designed to make reading extremely efficient.

In order to mitigate our use of unsafe, we assert the preconditions on each use, without assuming any further hypothesis.

Security

Patching ELF files has major security implications. This project acknowledges that and tries to be as careful as possible. However, it is possible that bugs slip through.

If that happens and causes security issues, this project follows a responsible disclosure policy. Please contact pe@pijul.org if you suspect you may have found a bug ith security implications.