kpcyrd / archlinux-scan-malloc-usable-size

Scan the symbols of all ELF binaries in all Arch Linux packages for usage of malloc_usable_size (-D_FORTIFY_SOURCE=3 compatibility)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

archlinux-scan-malloc-usable-size

Takes a path to a local Arch Linux mirror and concurrently scans all packages for ELF binaries mentioning a specific symbol: malloc_usable_size

cargo run --release -- /srv/archlinux-mirror/

The malloc_usable_size function is only supposed to be used for diagnostic purposes and crashes the program when used in programs built with -D_FORTIFY_SOURCE=3. Programs that make use of this function need to be patched or built with -D_FORTIFY_SOURCE=2 instead.

Further reading:

About

Scan the symbols of all ELF binaries in all Arch Linux packages for usage of malloc_usable_size (-D_FORTIFY_SOURCE=3 compatibility)

License:GNU General Public License v3.0


Languages

Language:Rust 100.0%