HomeFreeBSD

devel/ElectricFence: add missing posix_memalign()

Description

devel/ElectricFence: add missing posix_memalign()

The current implementation did not handle posix_memalign().

Programs using posix_memalign() to allocate memory effectively
silently fall back to the standard implementation. Whenever the
program calls free() to release the memory, the efence implementation
is called and barfs that the memory is unknown, leading to a core
dump.

Sadly, many programs use posix_memalign and thus could not be debugged
with efence.

Example use case: See nginx, PR#235296

PR: 235297
Submitted by: topical@gmx.net
Obtained from: https://bugzilla.redhat.com/show_bug.cgi?id=603075

		https://launchpad.net/ubuntu/+source/electric-fence/+changelog

Details

Provenance
piAuthored on
Parents
rP493984: New port: audio/faudio
Branches
Unknown
Tags
Unknown